Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 848 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 848 Bytes

react-shaper

An example of using Code Shaper to create a custom CLI. This CLI generates a fully opinionated React app, similar to create-react-app. See the how-to guide for more details.

To run this CLI, follow the steps below:

# Install the CLI
npm install -g react-shaper

# Change directory to a location where you create projects, e.g.
cd ~/projects

# Run React Shaper and follow the prompts
react-shaper
? App name? hello-world
? Package name used for publishing? @my-company/hello-world

Creating hello-world...
  package.json
  ...

Done. Now run:

  cd hello-world
  git init
  npm install
  git add .
  git commit -m "initial commit"
  npm run dev

Point your browser to http://localhost:3000 to see the home page.