[Build] extract build iconfont (#1242)

This commit is contained in:
neverland
2018-06-08 10:43:46 +08:00
committed by GitHub
parent f134841ec2
commit c520694ee1
27 changed files with 1305 additions and 1264 deletions
+19
View File
@@ -0,0 +1,19 @@
/**
* Build npm lib
*/
const shell = require('shelljs');
const signale = require('signale');
const tasks = [
'lint',
'build:entry',
'build:components',
'build:vant-css',
'build:vant',
'build:style-entry'
];
tasks.forEach(task => {
signale.pending(task);
shell.exec(`npm run ${task} --silent`);
signale.success(task);
});