@leif_marcus/create-react-web
v0.1.4
Published
generates simple react boilerplate including simple example components
Maintainers
Readme
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-webotherwise you can use
$ npm install -g @leif_marcus/create-react-webGenerate 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 startoptions
You can specify certain options when generating the boilerplate:
| args | default | description |
|------------|:--------------------------:|----------------------------------------------------------------------------------------------|
| --name | current directory basename | you can specify a custom name for the app. Names follow the same rules as npm package names. |
| --srcDir | src | define where to save the main react application |
| --react | 16.8.5 | define which react version you want to use. |
| --redux | false | generate redux boilerplate with the app. This will generate an example redux store with simple counter |
| --router | false | generate react-router boilerplate with the app |
| --server | true | generate basic express server to serve the production version | |
