UNPKG

621 BPlain TextView Raw
1import * as program from 'commander';
2import { notifyOfUpdate, pkg } from './utils';
3
4notifyOfUpdate();
5
6program.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
15program.parse(process.argv);