ab949152fb6aaa43b753421e5504e98e177fbdeff4a8f3264279cf52ce81e9357be7e38fccb839d6bd9bc356f4067896cf6a14214710598b8e4102f7561e1c 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. "use strict";
  2. module.exports = {
  3. filename: {
  4. type: "filename",
  5. description: "filename to use when reading from stdin - this will be used in source-maps, errors etc",
  6. default: "unknown",
  7. shorthand: "f"
  8. },
  9. filenameRelative: {
  10. hidden: true,
  11. type: "string"
  12. },
  13. inputSourceMap: {
  14. hidden: true
  15. },
  16. env: {
  17. hidden: true,
  18. default: {}
  19. },
  20. mode: {
  21. description: "",
  22. hidden: true
  23. },
  24. retainLines: {
  25. type: "boolean",
  26. default: false,
  27. description: "retain line numbers - will result in really ugly code"
  28. },
  29. highlightCode: {
  30. description: "enable/disable ANSI syntax highlighting of code frames (on by default)",
  31. type: "boolean",
  32. default: true
  33. },
  34. suppressDeprecationMessages: {
  35. type: "boolean",
  36. default: false,
  37. hidden: true
  38. },
  39. presets: {
  40. type: "list",
  41. description: "",
  42. default: []
  43. },
  44. plugins: {
  45. type: "list",
  46. default: [],
  47. description: ""
  48. },
  49. ignore: {
  50. type: "list",
  51. description: "list of glob paths to **not** compile",
  52. default: []
  53. },
  54. only: {
  55. type: "list",
  56. description: "list of glob paths to **only** compile"
  57. },
  58. code: {
  59. hidden: true,
  60. default: true,
  61. type: "boolean"
  62. },
  63. metadata: {
  64. hidden: true,
  65. default: true,
  66. type: "boolean"
  67. },
  68. ast: {
  69. hidden: true,
  70. default: true,
  71. type: "boolean"
  72. },
  73. extends: {
  74. type: "string",
  75. hidden: true
  76. },
  77. comments: {
  78. type: "boolean",
  79. default: true,
  80. description: "write comments to generated output (true by default)"
  81. },
  82. shouldPrintComment: {
  83. hidden: true,
  84. description: "optional callback to control whether a comment should be inserted, when this is used the comments option is ignored"
  85. },
  86. wrapPluginVisitorMethod: {
  87. hidden: true,
  88. description: "optional callback to wrap all visitor methods"
  89. },
  90. compact: {
  91. type: "booleanString",
  92. default: "auto",
  93. description: "do not include superfluous whitespace characters and line terminators [true|false|auto]"
  94. },
  95. minified: {
  96. type: "boolean",
  97. default: false,
  98. description: "save as much bytes when printing [true|false]"
  99. },
  100. sourceMap: {
  101. alias: "sourceMaps",
  102. hidden: true
  103. },
  104. sourceMaps: {
  105. type: "booleanString",
  106. description: "[true|false|inline]",
  107. default: false,
  108. shorthand: "s"
  109. },
  110. sourceMapTarget: {
  111. type: "string",
  112. description: "set `file` on returned source map"
  113. },
  114. sourceFileName: {
  115. type: "string",
  116. description: "set `sources[0]` on returned source map"
  117. },
  118. sourceRoot: {
  119. type: "filename",
  120. description: "the root from which all sources are relative"
  121. },
  122. babelrc: {
  123. description: "Whether or not to look up .babelrc and .babelignore files",
  124. type: "boolean",
  125. default: true
  126. },
  127. sourceType: {
  128. description: "",
  129. default: "module"
  130. },
  131. auxiliaryCommentBefore: {
  132. type: "string",
  133. description: "print a comment before any injected non-user code"
  134. },
  135. auxiliaryCommentAfter: {
  136. type: "string",
  137. description: "print a comment after any injected non-user code"
  138. },
  139. resolveModuleSource: {
  140. hidden: true
  141. },
  142. getModuleId: {
  143. hidden: true
  144. },
  145. moduleRoot: {
  146. type: "filename",
  147. description: "optional prefix for the AMD module formatter that will be prepend to the filename on module definitions"
  148. },
  149. moduleIds: {
  150. type: "boolean",
  151. default: false,
  152. shorthand: "M",
  153. description: "insert an explicit id for modules"
  154. },
  155. moduleId: {
  156. description: "specify a custom name for module ids",
  157. type: "string"
  158. },
  159. passPerPreset: {
  160. description: "Whether to spawn a traversal pass per a preset. By default all presets are merged.",
  161. type: "boolean",
  162. default: false,
  163. hidden: true
  164. },
  165. parserOpts: {
  166. description: "Options to pass into the parser, or to change parsers (parserOpts.parser)",
  167. default: false
  168. },
  169. generatorOpts: {
  170. description: "Options to pass into the generator, or to change generators (generatorOpts.generator)",
  171. default: false
  172. }
  173. };