mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
20 lines
342 B
JavaScript
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);
|
|
});
|