mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-03 04:27:41 +08:00
27 lines
424 B
JavaScript
27 lines
424 B
JavaScript
#!/usr/bin/env node
|
|
|
|
'use strict';
|
|
|
|
require('colorful').colorful();
|
|
const gulp = require('gulp');
|
|
const program = require('commander');
|
|
|
|
program.on('--help', () => {
|
|
console.log(' Usage:'.to.bold.blue.color);
|
|
console.log();
|
|
});
|
|
|
|
program.parse(process.argv);
|
|
|
|
const task = program.args[0];
|
|
|
|
if (!task) {
|
|
program.help();
|
|
} else {
|
|
console.log('antd-tools run', task);
|
|
|
|
require('../gulpfile');
|
|
|
|
gulp.start(task);
|
|
}
|