vant/build/build-lib.js
2018-12-14 14:24:23 +08:00

26 lines
474 B
JavaScript

/**
* Build npm lib
*/
const shell = require('shelljs');
const signale = require('signale');
const { Signale } = signale;
const tasks = [
'bootstrap',
'lint',
'build:entry',
'build:components',
'build:style',
'build:style-entry',
'build:vant'
];
tasks.forEach(task => {
signale.start(task);
const interactive = new Signale({ interactive: true });
interactive.pending(task);
shell.exec(`npm run ${task} --silent`);
interactive.success(task);
});