Skip to content
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

refactor: CLI creator class #2009

Merged
merged 1 commit into from
Nov 2, 2020
Merged

refactor: CLI creator class #2009

merged 1 commit into from
Nov 2, 2020

Conversation

anshumanv
Copy link
Member

What kind of change does this PR introduce?

refactor

Did you add tests for your changes?
Yes

If relevant, did you update the documentation?

NA
Summary

  • Cleanup webpack-cli.js redundant class methods
  • Remove stale group helpers

Does this PR introduce a breaking change?

No

Other information
Fixes #1877

chore: cleanup cli

chore: rm unused code
Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @webpack/cli-team

@anshumanv anshumanv changed the title chore: refactor CLI creator class refactor: CLI creator class Nov 2, 2020
@anshumanv anshumanv merged commit 07d18b0 into webpack:master Nov 2, 2020
acc[toKebabCase(cur)] = parsedArgs[cur];
return acc;
}, {});
const coreCliHelper = require('webpack').cli;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about if we have webpack@4? We don't have .cli

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, I think it worked, lemme recheck

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, let's check it, but ci success so I think it should be work

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strange, passed in CI but fails locally 😞

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sending a follow up - sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: Post group-design cleanup
4 participants