A simple tool to automate some base structure and config when using webpack and React in your project.
$ npm i -g crc-cli
$ crc-cli [-n][name]
options:
-n, --name Name of the react-project-directory
This is what new react application have:
- pm2 to start and watch the app(node >= 8.0.0)
- ES6 support via babel
- sass support via sass-loader
- less support via less-loader
- use koa framework
- use jade/pug template
- use webpack to build resources
- react-cli/
- public/
- image/
- scss/
- js/
- components/
- containers/
- lib/
- routes/
- pages/
- src/
- routes/
- controllers/
- app.js
- template/
- node_modules/
- webpack.config.js
- public/
npm install
npm run start
npm run startfe
- visit your website
localhost:8088
MIT license.