import { loggerError } from './util' ; import { checkVersion as selfCheckVersion } from './util/npm' ; import { getEslint } from './eslint' ; import { buildWebpack as selfBuildWebpack , devServerWebpack as selfDevWebpack } from './build/webpack' ; import { buildRollup as selfBuildRollup } from './build/rollup' ; export const execEslint = async ( ) => { await getEslint ( ) ; } ; export const buildWebpack = async ( ) => { try { await getEslint ( ) ; await selfBuildWebpack ( ) ; } catch ( error ) { loggerError ( error ) ; } } ; export const devServerWebpack = async ( ) => { try { await selfDevWebpack ( ) ; } catch ( error ) { loggerError ( error ) ; } } ; export const buildRollup = async ( ) => { try { await getEslint ( ) ; await selfBuildRollup ( ) ; } catch ( error ) { loggerError ( error ) ; } } ; export const checkVersion = async ( ) => { await selfCheckVersion ( ) ; } ;