mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 00:14:18 +00:00
[Build] beautify logger
This commit is contained in:
@@ -3,17 +3,22 @@
|
||||
*/
|
||||
const shell = require('shelljs');
|
||||
const signale = require('signale');
|
||||
const { Signale } = signale;
|
||||
const tasks = [
|
||||
'bootstrap',
|
||||
'lint',
|
||||
'build:entry',
|
||||
'build:components',
|
||||
'build:vant-css',
|
||||
'build:vant',
|
||||
'build:style-entry'
|
||||
'build:style-entry',
|
||||
'build:vant'
|
||||
];
|
||||
|
||||
tasks.forEach(task => {
|
||||
signale.pending(task);
|
||||
signale.start(task);
|
||||
|
||||
const interactive = new Signale({ interactive: true });
|
||||
interactive.pending(task);
|
||||
shell.exec(`npm run ${task} --silent`);
|
||||
signale.success(task);
|
||||
interactive.success(task);
|
||||
});
|
||||
|
Reference in New Issue
Block a user