-
-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(cli): move constants to a separate file #798
Conversation
moved all constants to a separate file for CLI scopre and imported from there. ISSUES CLOSED: webpack#772
Format all code using prettier, remove console.log ISSUES CLOSED: webpack#772
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon. |
codacy fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This refactor is shining 💯
Few suggestions for you.
split constants destructuring to multiple lines in config-yargs
@rishabh3112 done with the quick fixes. 💯 |
update var name, revert oc
@anshumanv Thanks for your update. I labeled the Pull Request so reviewers will review it again. @ematipico Please review the new changes. |
moved constants to utils directory
const OPTIMIZE_GROUP = "Optimizing options:"; | ||
const DISPLAY_GROUP = "Stats options:"; | ||
const GROUPS = { | ||
CONFIG_GROUP, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't be more compact to initialize the constants inside the JSON? :)
const GROUPS = {
CONFIG_GROUP: "Config options:"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by "compact"?
* 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
What kind of change does this PR introduce?
Refactor constants
Did you add tests for your changes?
Yes
If relevant, did you update the documentation?
Not relevant
Summary
Does this PR introduce a breaking change?
No
Other information
Fixes #772