generator-react-kylin
will help you create new React-Webpack projects.
It includes:
- react@15.x
- webpack@1.x
- webpack-dev-server@1.14.x
- ant-design@2.x
- babel@6.5.x
- react-hot-loader@1.3.x
- react-redux@5.x
- react-router@3.x
- redux@3.6.x
$ npm install -g yo
$ npm install -g generator-react-kylin
# Create a new directory, and `cd` into it
$ mkdir react-project && cd react-project
# run
$ yo react-kylin
If you install the
yarn
, just pressCtrl+C
(windows) /Command+C
(MacOS) to stop thenpm install
, just typeyarn install
to install.
# Development Mode (hot-reload not refresh the page)
$ npm run dev
# Production Mode
$ npm run build