1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = void 0;
|
7 |
|
8 | function _path() {
|
9 | const data = _interopRequireDefault(require("path"));
|
10 |
|
11 | _path = function () {
|
12 | return data;
|
13 | };
|
14 |
|
15 | return data;
|
16 | }
|
17 |
|
18 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | var _default = [{
|
28 | name: '--entry-file <path>',
|
29 | description: 'Path to the root JS file, either absolute or relative to JS root'
|
30 | }, {
|
31 | name: '--platform [string]',
|
32 | description: 'Either "ios" or "android"',
|
33 | default: 'ios'
|
34 | }, {
|
35 | name: '--transformer [string]',
|
36 | description: 'Specify a custom transformer to be used'
|
37 | }, {
|
38 | name: '--dev [boolean]',
|
39 | description: 'If false, warnings are disabled and the bundle is minified',
|
40 | parse: val => val !== 'false',
|
41 | default: true
|
42 | }, {
|
43 | name: '--minify [boolean]',
|
44 | description: 'Allows overriding whether bundle is minified. This defaults to ' + 'false if dev is true, and true if dev is false. Disabling minification ' + 'can be useful for speeding up production builds for testing purposes.',
|
45 | parse: val => val !== 'false'
|
46 | }, {
|
47 | name: '--bundle-output <string>',
|
48 | description: 'File name where to store the resulting bundle, ex. /tmp/groups.bundle'
|
49 | }, {
|
50 | name: '--bundle-encoding [string]',
|
51 | description: 'Encoding the bundle should be written in (https://nodejs.org/api/buffer.html#buffer_buffer).',
|
52 | default: 'utf8'
|
53 | }, {
|
54 | name: '--max-workers [number]',
|
55 | description: 'Specifies the maximum number of workers the worker-pool ' + 'will spawn for transforming files. This defaults to the number of the ' + 'cores available on your machine.',
|
56 | parse: workers => Number(workers)
|
57 | }, {
|
58 | name: '--sourcemap-output [string]',
|
59 | description: 'File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map'
|
60 | }, {
|
61 | name: '--sourcemap-sources-root [string]',
|
62 | description: "Path to make sourcemap's sources entries relative to, ex. /root/dir"
|
63 | }, {
|
64 | name: '--sourcemap-use-absolute-path',
|
65 | description: 'Report SourceMapURL using its full path',
|
66 | default: false
|
67 | }, {
|
68 | name: '--assets-dest [string]',
|
69 | description: 'Directory name where to store assets referenced in the bundle'
|
70 | }, {
|
71 | name: '--reset-cache',
|
72 | description: 'Removes cached files',
|
73 | default: false
|
74 | }, {
|
75 | name: '--read-global-cache',
|
76 | description: 'Try to fetch transformed JS code from the global cache, if configured.',
|
77 | default: false
|
78 | }, {
|
79 | name: '--config [string]',
|
80 | description: 'Path to the CLI configuration file',
|
81 | parse: val => _path().default.resolve(val)
|
82 | }];
|
83 | exports.default = _default; |
\ | No newline at end of file |