forked from webpack/webpack-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cli): move constants to a separate file
moved all constants to a separate file for CLI scopre and imported from there. ISSUES CLOSED: webpack#772
- Loading branch information
Showing
4 changed files
with
36 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const NON_COMPILATION_ARGS = [ | ||
"init", | ||
"migrate", | ||
"add", | ||
"remove", | ||
"serve", | ||
"generate-loader", | ||
"generate-plugin", | ||
"info" | ||
]; | ||
|
||
const CONFIG_GROUP = "Config options:"; | ||
const BASIC_GROUP = "Basic options:"; | ||
const MODULE_GROUP = "Module options:"; | ||
const OUTPUT_GROUP = "Output options:"; | ||
const ADVANCED_GROUP = "Advanced options:"; | ||
const RESOLVE_GROUP = "Resolving options:"; | ||
const OPTIMIZE_GROUP = "Optimizing options:"; | ||
const DISPLAY_GROUP = "Stats options:"; | ||
const GROUPS = { CONFIG_GROUP, BASIC_GROUP, MODULE_GROUP, OUTPUT_GROUP, ADVANCED_GROUP, RESOLVE_GROUP, OPTIMIZE_GROUP, DISPLAY_GROUP } | ||
|
||
const webpackOptionsFlag = "WEBPACK_OPTIONS"; | ||
|
||
module.exports = { | ||
NON_COMPILATION_ARGS, | ||
GROUPS, | ||
webpackOptionsFlag, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters