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

Build a CLI interface for react-scripts #8317

Open
ocavue opened this issue Jan 13, 2020 · 0 comments
Open

Build a CLI interface for react-scripts #8317

ocavue opened this issue Jan 13, 2020 · 0 comments

Comments

@ocavue
Copy link

ocavue commented Jan 13, 2020

Is your proposal related to a problem?

Currently, react-scripts is just a simple "script", with almost zero arguments/flags.

$ yarn run react-scripts 
Unknown script "undefined".

$ yarn run react-scripts --help
Unknown script "--help".

This can cause

  1. Make users confusing without --help
  2. Difficult to add more features. For example, I want to build my project with a NODE_ENV value different than "production". With a CLI interface, I can use something like vue-cli-service build --env test to present this feature.

A complete CLI interface can solve these issues.

Describe the solution you'd like

Maybe we can choose a famous npm package to implement it.

commander for example, who has already been installed by react-scripts: react-scripts > html-webpack-plugin > html-minifier > commander

And of course, there are many other options in the JS world.

Describe alternatives you've considered

N/A

Additional context

N/A

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

No branches or pull requests

1 participant