mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
34 lines
788 B
JavaScript
Executable File
34 lines
788 B
JavaScript
Executable File
#!/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);
|