UNPKG

655 BJavaScriptView Raw
1#!/usr/bin/env node
2
3const collect = (val, memo) => {
4 memo.push(val);
5 return memo;
6};
7
8// args
9const program = require('commander');
10program
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
18require('../commands/build-app')(
19program.args,
20program.output,
21program.config,
22program.market,
23program.regexp
24);
25
26// can take config with array of paths with src and output and iterates
\No newline at end of file