Skip to content

mahavira/webpack-react-kickstart

Repository files navigation

webpack-react-kickstart

webpack+react前端开发启动样板器

修改自vesparny/react-kickstart

特征

  • 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

Contributing

PR and issues reporting are always welcome :)

License

See LICENSE file

Changelog

See CHANGELOG.md file

About

webpack+react前端开发启动样板器

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published