|
1 | 1 | module.exports = function(optimist) { |
2 | 2 | optimist |
3 | 3 | .boolean("help").alias("help", "h").alias("help", "?").describe("help") |
4 | | - .string("config").describe("config") |
| 4 | + .string("config").describe("config", "Path to the config file") |
5 | 5 | .string("env").describe("env", "Enviroment passed to the config, when it is a function") |
6 | | - .string("context").describe("context") |
7 | | - .string("entry").describe("entry") |
8 | | - .string("module-bind").describe("module-bind") |
| 6 | + .string("context").describe("context", "The root directory for resolving entry point and stats") |
| 7 | + .string("entry").describe("entry", "The entry point") |
| 8 | + .string("module-bind").describe("module-bind", "Bind an extension to a loader") |
9 | 9 | .string("module-bind-post").describe("module-bind-post") |
10 | 10 | .string("module-bind-pre").describe("module-bind-pre") |
11 | | - .string("output-path").describe("output-path") |
12 | | - .string("output-file").describe("output-file") |
13 | | - .string("output-chunk-file").describe("output-chunk-file") |
14 | | - .string("output-source-map-file").describe("output-source-map-file") |
15 | | - .string("output-public-path").describe("output-public-path") |
16 | | - .string("output-jsonp-function").describe("output-jsonp-function") |
17 | | - .boolean("output-pathinfo").describe("output-pathinfo") |
18 | | - .string("output-library").describe("output-library") |
19 | | - .string("output-library-target").describe("output-library-target") |
20 | | - .string("records-input-path").describe("records-input-path") |
21 | | - .string("records-output-path").describe("records-output-path") |
22 | | - .string("records-path").describe("records-path") |
23 | | - .string("define").describe("define") |
24 | | - .string("target").describe("target") |
25 | | - .boolean("cache").describe("cache").default("cache", true) |
26 | | - .boolean("watch").alias("watch", "w").describe("watch") |
27 | | - .boolean("watch-stdin").alias("watch-stdin", "stdin").describe("watch which closes when stdin ends") |
28 | | - .describe("watch-aggregate-timeout") |
29 | | - .describe("watch-poll") |
30 | | - .boolean("hot").describe("hot") |
31 | | - .boolean("debug").describe("debug") |
32 | | - .string("devtool").describe("devtool") |
33 | | - .boolean("progress").describe("progress") |
34 | | - .string("resolve-alias").describe("resolve-alias") |
35 | | - .string("resolve-loader-alias").describe("resolve-loader-alias") |
36 | | - .describe("optimize-max-chunks") |
37 | | - .describe("optimize-min-chunk-size") |
38 | | - .boolean("optimize-minimize").describe("optimize-minimize") |
39 | | - .boolean("optimize-dedupe").describe("optimize-dedupe") |
40 | | - .string("prefetch").describe("prefetch") |
41 | | - .string("provide").describe("provide") |
42 | | - .boolean("labeled-modules").describe("labeled-modules") |
43 | | - .string("plugin").describe("plugin") |
44 | | - .boolean("bail").describe("bail") |
45 | | - .boolean("profile").describe("profile") |
46 | | - .boolean("d").describe("d", "shortcut for --debug --devtool sourcemap --output-pathinfo") |
47 | | - .boolean("p").describe("p", "shortcut for --optimize-minimize"); |
| 11 | + .string("output-path").describe("output-path", "The output path for compilation assets") |
| 12 | + .string("output-file").describe("output-file", "The output filename of the bundle") |
| 13 | + .string("output-chunk-file").describe("output-chunk-file", "The output filename for additional chunks") |
| 14 | + .string("output-source-map-file").describe("output-source-map-file", "The output filename for the SourceMap") |
| 15 | + .string("output-public-path").describe("output-public-path", "The public path for the assets") |
| 16 | + .string("output-jsonp-function").describe("output-jsonp-function", "The name of the jsonp function used for chunk loading") |
| 17 | + .boolean("output-pathinfo").describe("output-pathinfo", "Include a comment with the request for every dependency") |
| 18 | + .string("output-library").describe("output-library", "Expose the exports of the entry point as library") |
| 19 | + .string("output-library-target").describe("output-library-target", "The type for exposing the exports of the entry point as library") |
| 20 | + .string("records-input-path").describe("records-input-path", "Path to the records file (reading)") |
| 21 | + .string("records-output-path").describe("records-output-path", "Path to the records file (writing)") |
| 22 | + .string("records-path").describe("records-path", "Path to the records file") |
| 23 | + .string("define").describe("define", "Define any free var in the bundle") |
| 24 | + .string("target").describe("target", "The targeted execution enviroment") |
| 25 | + .boolean("cache").describe("cache", "Enable in memory caching").default("cache", true) |
| 26 | + .boolean("watch").alias("watch", "w").describe("watch", "Watch the filesystem for changes") |
| 27 | + .boolean("watch-stdin").alias("watch-stdin", "stdin").describe("Exit the process when stdin is closed") |
| 28 | + .describe("watch-aggregate-timeout", "Timeout for gathering changes while watching") |
| 29 | + .describe("watch-poll", "The polling intervall for watching (also enable polling)") |
| 30 | + .boolean("hot").describe("hot", "Enables Hot Module Replacement") |
| 31 | + .boolean("debug").describe("debug", "Switch loaders to debug mode") |
| 32 | + .string("devtool").describe("devtool", "Enable devtool for better debugging experience") |
| 33 | + .boolean("progress").describe("progress", "Print compilation progress in percentage") |
| 34 | + .string("resolve-alias").describe("resolve-alias", "Setup a module alias for resolving") |
| 35 | + .string("resolve-loader-alias").describe("resolve-loader-alias", "Setup a loader alias for resolving") |
| 36 | + .describe("optimize-max-chunks", "Try to keep the chunk count below a limit") |
| 37 | + .describe("optimize-min-chunk-size", "Try to keep the chunk size above a limit") |
| 38 | + .boolean("optimize-minimize").describe("optimize-minimize", "Minimize javascript and switches loaders to minimizing") |
| 39 | + .boolean("optimize-dedupe").describe("optimize-dedupe", "Optimize duplicate module sources in the bundle") |
| 40 | + .string("prefetch").describe("prefetch", "Prefetch this request") |
| 41 | + .string("provide").describe("provide", "Provide these modules as free vars in all modules") |
| 42 | + .boolean("labeled-modules").describe("labeled-modules", "Enables labeled modules") |
| 43 | + .string("plugin").describe("plugin", "Load this plugin") |
| 44 | + .boolean("bail").describe("bail", "Abort the compilation on first error") |
| 45 | + .boolean("profile").describe("profile", "Profile the compilation and include information in stats") |
| 46 | + .boolean("d").describe("d", "shortcut for --debug --devtool eval-check-module-source-map --output-pathinfo") |
| 47 | + .boolean("p").describe("p", "shortcut for --optimize-minimize --define process.env.NODE_ENV=\"production\""); |
48 | 48 | }; |
0 commit comments