1 | import * as program from 'commander';
|
2 | import { notifyOfUpdate, pkg } from './utils';
|
3 |
|
4 | notifyOfUpdate();
|
5 |
|
6 | program.version(pkg.version)
|
7 | .usage('new <copmonent-name> [property:type...]')
|
8 | .command('build <path>', 'compile a Web Component')
|
9 | .command('clean <path>', "clean a Web Component's compiled files")
|
10 | .command('new <copmonent-name> [property:type...]', 'generate a Web Component')
|
11 | .command('serve <path>', 'start and open a dev server')
|
12 | .command('test <path>', 'test a Web Component')
|
13 | .command('watch <path>', 'run build on file changes');
|
14 |
|
15 | program.parse(process.argv);
|