bundleCommandLineArgs.js 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. function _path() {
  7. const data = _interopRequireDefault(require("path"));
  8. _path = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  14. /**
  15. * Copyright (c) Facebook, Inc. and its affiliates.
  16. *
  17. * This source code is licensed under the MIT license found in the
  18. * LICENSE file in the root directory of this source tree.
  19. *
  20. */
  21. var _default = [{
  22. name: '--entry-file <path>',
  23. description: 'Path to the root JS file, either absolute or relative to JS root'
  24. }, {
  25. name: '--platform [string]',
  26. description: 'Either "ios" or "android"',
  27. default: 'ios'
  28. }, {
  29. name: '--transformer [string]',
  30. description: 'Specify a custom transformer to be used'
  31. }, {
  32. name: '--dev [boolean]',
  33. description: 'If false, warnings are disabled and the bundle is minified',
  34. parse: val => val !== 'false',
  35. default: true
  36. }, {
  37. name: '--minify [boolean]',
  38. 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.',
  39. parse: val => val !== 'false'
  40. }, {
  41. name: '--bundle-output <string>',
  42. description: 'File name where to store the resulting bundle, ex. /tmp/groups.bundle'
  43. }, {
  44. name: '--bundle-encoding [string]',
  45. description: 'Encoding the bundle should be written in (https://nodejs.org/api/buffer.html#buffer_buffer).',
  46. default: 'utf8'
  47. }, {
  48. name: '--max-workers [number]',
  49. 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.',
  50. parse: workers => Number(workers)
  51. }, {
  52. name: '--sourcemap-output [string]',
  53. description: 'File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map'
  54. }, {
  55. name: '--sourcemap-sources-root [string]',
  56. description: "Path to make sourcemap's sources entries relative to, ex. /root/dir"
  57. }, {
  58. name: '--sourcemap-use-absolute-path',
  59. description: 'Report SourceMapURL using its full path',
  60. default: false
  61. }, {
  62. name: '--assets-dest [string]',
  63. description: 'Directory name where to store assets referenced in the bundle'
  64. }, {
  65. name: '--reset-cache',
  66. description: 'Removes cached files',
  67. default: false
  68. }, {
  69. name: '--read-global-cache',
  70. description: 'Try to fetch transformed JS code from the global cache, if configured.',
  71. default: false
  72. }, {
  73. name: '--config [string]',
  74. description: 'Path to the CLI configuration file',
  75. parse: val => _path().default.resolve(val)
  76. }];
  77. exports.default = _default;
  78. //# sourceMappingURL=bundleCommandLineArgs.js.map