vant/build/build-lib.js
2018-06-08 10:43:46 +08:00

20 lines
342 B
JavaScript

/**
* 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);
});