合作,共赢,together and stronger.
yeoman开发react脚手架

generator-react-kylin

npmGithub
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

Installation

$ npm install -g yo
$ npm install -g generator-react-kylin

Create your project

# Create a new directory, and `cd` into it
$ mkdir react-project && cd react-project
# run 
$ yo react-kylin

If you install the yarn , just press Ctrl+C (windows) / Command+C (MacOS) to stop the npm install, just type yarn install to install.

Usage

# Development Mode (hot-reload not refresh the page)
$ npm run dev

# Production Mode
$ npm run build

转载请注明:信鑫-King's Blog » yeoman开发react脚手架

分享到: