UNPKG

856 BJavaScriptView Raw
1#!/usr/bin/env node
2const {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// This assignment must be done before any other project module loads, otherwise
29// it may get an incorrect project object.
30require('liferay-npm-build-tools-common/lib/project').default.argv = argv;
31
32require('../lib/index').default(argv);