webpack+react前端开发启动样板器
- webpack + vanilla hot-module-replacement
- Stateless functional components
- css-modules + PostCSS
- basic routing setup with react-router (you most likely need routing in your app)
- babeljs
- unit tests (ava + sinon) examples with both shallow-rendering and jsdom
- code coverage with nyc
- development and production build
克隆repository
git clone https://github.com/mahavira/webpack-react-kickstart
安装
npm install
启动本地开发环境
npm start
运行代码测试
npm test
构建生产环境代码
npm run build
运行生产环境
npm run build:start
检测语法标准化(检测语法错误\变量定义规范\代码格式规范\蹩脚语言特性的使用检测)
npm run lint
导出代码覆盖率报告
npm run test:cover
PR and issues reporting are always welcome :)
See LICENSE file
See CHANGELOG.md file