/CLI-crasb

This repo is a Interactive CLI for the react-simple-boilerplate

Primary LanguageJavaScriptMIT LicenseMIT

CLI-crasb

This repo is a Interactive CLI for the react-simple-boilerplate

Create React App (Simple Boilerplate - CRASB)

Create React apps with no build configuration offline every time.

Installing the CLI For first time you need to install the CRASB CLI via this command, then after you'll be able to create React apps offline.

npm install -g react-simple-boilerplate

Usage

CRASB -n <app-name>

for example:

CRASB -n my-app

It will create a directory called my-app inside the current folder.
Inside that directory, it will generate the initial project structure.

No configuration or complicated folder structures, only the files you need to build your app.
Once the installation is done, you can open your project folder:

cd my-app

Inside the newly created project, you can run some built-in commands:

yarn install

It will install all the packages that are required for project to up and running

npm run dev

Runs the app in development mode.
Open http://localhost:3000 to view it in the browser.

The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console.

npm run test

Runs the test watcher in an interactive mode.
By default, runs tests related to files changed since the last commit.

Read more about testing.

npm run build or yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your app is ready to be deployed.