0.1.4 • Published 5 years ago

@leif_marcus/create-react-web v0.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Create React Web

Simple react boilerplate generator. As create-react-app seems to be too big for some small projects I did, I decided to create this generator to generate a basic react web app.

this is made for leon

Install Globally

If you are using yarn:

$ yarn global add @leif_marcus/create-react-web

otherwise you can use

$ npm install -g @leif_marcus/create-react-web

Generate Boilerplate and start

# create and open a new directory:
$ mkdir my-new-project && cd my-new-project

# generate boilerplate:
$ create-react-web --redux --router

# run for development (webpack-dev-server):
$ yarn dev

# run for production (webpack -p)
$ yarn start

options

You can specify certain options when generating the boilerplate:

argsdefaultdescription
--namecurrent directory basenameyou can specify a custom name for the app. Names follow the same rules as npm package names.
--srcDirsrcdefine where to save the main react application
--react16.8.5define which react version you want to use.
--reduxfalsegenerate redux boilerplate with the app. This will generate an example redux store with simple counter
--routerfalsegenerate react-router boilerplate with the app
--servertruegenerate basic express server to serve the production version