build: add files of vant-cli 2

This commit is contained in:
陈嘉涵
2019-11-18 16:27:12 +08:00
parent 28e2849087
commit 6514b650d0
46 changed files with 12125 additions and 249 deletions

33
packages/vant-cli/src/index.ts Executable file
View File

@@ -0,0 +1,33 @@
#!/usr/bin/env node
import { command, parse } from 'commander';
import { dev } from './commands/dev';
import { test } from './commands/test';
import { lint } from './commands/lint';
import { clean } from './commands/clean';
import { build } from './commands/build';
import { release } from './commands/release';
import { changelog } from './commands/changelog';
import { commitLint } from './commands/commit-lint';
command('dev').action(dev);
command('lint').action(lint);
command('clean').action(clean);
command('build').action(build);
command('release').action(release);
command('changelog <dir>')
.option('--tag [tag]', 'Since tag')
.action(changelog);
command('commit-lint').action(commitLint);
command('test')
.option('--watch')
.action(test);
parse(process.argv);