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 (webpack#798)
* 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 * chore(cli): lint files, rm console.log Format all code using prettier, remove console.log ISSUES CLOSED: webpack#772 * chore(cli): codacy fix codacy fix * chore(cli): split destructuring into multiple lines split constants destructuring to multiple lines in config-yargs * chore(cli): update var name, revert oc update var name, revert oc * chore(cli): moved constants to utils moved constants to utils directory
- Loading branch information
Showing
4 changed files
with
55 additions
and
24 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,37 @@ | ||
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 WEBPACK_OPTIONS_FLAG = "WEBPACK_OPTIONS"; | ||
|
||
module.exports = { | ||
NON_COMPILATION_ARGS, | ||
GROUPS, | ||
WEBPACK_OPTIONS_FLAG | ||
}; |
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