UNPKG

ucf-scripts-test

Version:
45 lines (42 loc) β€’ 1.23 kB
/* UCF Build Services * @Author: Kvkens(yueming@yonyou.com) * @Date: 2019-01-22 09:43:39 * @Last Modified by: Kvkens * @Last Modified time: 2019-01-22 09:43:42 */ const chalk = require('chalk'); const webpack = require('webpack'); const util = require('./util'); const webpackConfig = require('./build.config'); const compiler = webpack(webpackConfig); /** * build 主程序 */ build = () => { console.log(); console.log(chalk.green(`--------------------------------------------`)); console.log(chalk.yellow(`\t πŸš€ UCF Build Server`)); console.log(chalk.green(`\t [Build Version] : πŸ… ${util.getPkg().version}`)); console.log(); console.log(chalk.green(`\t πŸ’ͺ Good Luck Please Wait β˜ƒοΈ`)); console.log(chalk.green(`--------------------------------------------`)); console.log(); compiler.run((err, stats) => { if (!err) { console.log('\n' + stats.toString({ hash: false, chunks: false, children: false, colors: true })); } else { console.log(chalk.red(err)); } }); } //ε―εŠ¨ζž„ε»Ί module.exports = { plugin: () => { build(); } }