Panli运维平台 任务列表 React 重构
React Redux Boilerplate with sGrid, Webpack and Hot Module Replacement configuration.
- 以仓库为基准的路由系统
/warehouse/组织名或用户名/仓库名/分页数
/warehouse/SoftwareTest/Panli/2
This is a simple React boilerplate with:
- Redux
- Webpack
- React Router
- Hot Module Replacement
- PostCSS
- Sass
- CSS Modules
- React CSS Modules
- Stylus
- sGrid - my own Flexbox grid for Stylus
- Testing with:
http://devops.panli.com/api/getissues?gitusername=SoftwareTest&gitreponame=Panli&pageid=1
$ npm install
$ npm start
...and go to: http://localhost:3000
More info and documentation soon. There will be also a tutorial in a blog post. Stay tuned.
If you are ready to prepare your production files. You can run npm run build
. Webpack will bundle and save all needed files (.js, .css, img, .html) in the public
folder.
It uses Mocha runner config. You can use Enzyme, Chai, Sinon and JSDOM too.
Configuration allows you to test components which uses CSS Modules.
If you want to run tests put your test files in the __tests__
folder and run npm test
. (it will run eslint too) or npm run testonly
.
You'll find example tests in the __tests__
folder.
Works in Node which supports Promises.
MIT