feat(cli): add create command

This commit is contained in:
陈嘉涵
2020-01-16 17:06:22 +08:00
parent 38001e59f0
commit 62a1b39b2b
31 changed files with 677 additions and 258 deletions

View File

@@ -6,6 +6,7 @@ import { lint } from './commands/lint';
import { test } from './commands/jest';
import { clean } from './commands/clean';
import { build } from './commands/build';
import { create } from './commands/create';
import { release } from './commands/release';
import { changelog } from './commands/changelog';
import { buildSite } from './commands/build-site';
@@ -40,6 +41,10 @@ command('build')
.option('--watch', 'Watch file change')
.action(build);
command('create')
.description('Create a new project')
.action(create);
command('release')
.description('Compile components and release it')
.action(release);