1 | #!/usr/bin/env node
|
2 |
|
3 | const collect = (val, memo) => {
|
4 | memo.push(val);
|
5 | return memo;
|
6 | };
|
7 |
|
8 |
|
9 | const program = require('commander');
|
10 | program
|
11 | .option('-c, --config <path>', 'path to config file')
|
12 | .option('-o, --output <path>', 'path to output directory')
|
13 | .option('-m, --market [market]', 'specify market')
|
14 | .option('-v, --verbose', 'Print all messages')
|
15 | .option('-e, --regexp [pattern]', 'Use pattern to include or exclude files', collect, [])
|
16 | .parse(process.argv);
|
17 |
|
18 | require('../commands/build-app')(
|
19 | program.args,
|
20 | program.output,
|
21 | program.config,
|
22 | program.market,
|
23 | program.regexp
|
24 | );
|
25 |
|
26 |
|
\ | No newline at end of file |