# react-cli **Repository Path**: iMofish/react-cli ## Basic Information - **Project Name**: react-cli - **Description**: A simple tool to automate some base structure and config when using webpack and React in your project.一个帮你自动生成基于webpack和、react和node技术栈的文件结构的工具,通常用来快速构建本地开发环境。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2018-07-21 - **Last Updated**: 2024-11-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [中文手册](./zh/README.md) # React-cli A simple tool to automate some base structure and config when using webpack and React in your project. ## Install `$ npm i -g crc-cli` ## How to use ``` $ crc-cli [-n][name] options: -n, --name Name of the react-project-directory ``` ## Used Tech This is what new react application have: 1. pm2 to start and watch the app(node >= 8.0.0) 2. ES6 support via babel 3. sass support via sass-loader 4. less support via less-loader 5. use koa framework 6. use jade/pug template 7. use webpack to build resources ## Directory Structure * react-cli/ * public/ * image/ * scss/ * js/ * components/ * containers/ * lib/ * routes/ * pages/ * src/ * routes/ * controllers/ * app.js * template/ * node_modules/ * webpack.config.js ## Usage 1. `npm install` 2. `npm run start` 3. `npm run startfe` 4. visit your website `localhost:8088` ## License MIT license.