1 | #!/usr/bin/env node
|
2 | const {argv} = require('yargs')
|
3 | .option('config', {
|
4 | alias: 'c',
|
5 | type: 'string',
|
6 | description:
|
7 | 'Specify path to config file to use (instead of .npmbundlerrc)',
|
8 | })
|
9 | .option('create-jar', {
|
10 | alias: 'j',
|
11 | type: 'boolean',
|
12 | description:
|
13 | 'Create a JAR file as output (as opposed to an exploded directory)',
|
14 | })
|
15 | .option('dump-report', {
|
16 | alias: 'r',
|
17 | type: 'boolean',
|
18 | description:
|
19 | 'Dump report HTML file with detailed information about the bundling process',
|
20 | })
|
21 | .option('version', {
|
22 | alias: 'v',
|
23 | type: 'boolean',
|
24 | description: 'Show version number and exit',
|
25 | })
|
26 | .help();
|
27 |
|
28 |
|
29 |
|
30 | require('liferay-npm-build-tools-common/lib/project').default.argv = argv;
|
31 |
|
32 | require('../lib/index').default(argv);
|