generates simple react boilerplate including simple example components
Last updated a year ago by leifmarcus .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @leif_marcus/create-react-web 
SYNC missed versions from official npm registry.

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


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

Current Tags

  • 0.1.4                                ...           latest (a year ago)

5 Versions

  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 5
Last Month 6
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |