Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !8336

Add `--help` flag to `react-scripts`

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/ocavue/feature/react_scripts_cli into master Jan 18, 2020
  • Overview 3
  • Commits 7
  • Pipelines 0
  • Changes 2

Created by: ocavue

This PR use commander (which is already used by create-react-app CLI) to provide a beautify CLI interface.


please provide us with clear instructions on how you verified your changes work.

Before this PR:

$ yarn run react-scripts --help                                                                                                                                                                                                                                              
yarn run v1.19.2
$ /Users/ocavue/code/github/rino/node_modules/.bin/react-scripts --help
Unknown script "--help".
Perhaps you need to update react-scripts?
See: https://facebook.github.io/create-react-app/docs/updating-to-new-releases

After this PR:

$ yarn run react-scripts --help    
Usage: react-scripts [options] [command]

Options:
  -V, --version    output the version number
  -h, --help       output usage information

Commands:
  start [options]  Runs the app in the development mode.
  build            Builds the app for production to the `build` folder.
  test             Launches the test runner in the interactive watch mode.
  eject            Eject config.
$ yarn run react-scripts start -h
Usage: react-scripts start [options]

Runs the app in the development mode.

Options:
  --port <port>  Specify port (default: 3000)
  --host <host>  Specify host (default: "0.0.0.0")
  --https        Use https
  -h, --help     output usage information
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/ocavue/feature/react_scripts_cli