Development

偏右 edited this page Feb 25, 2018 · 9 revisions

Folders

├── components    # react source code and demos
├── docs          # documentation in markdown
├── scripts       # 
├── site          # website layout and code
└── package.json

Local development

Fork and git clone.

$ npm install
$ npm start

Then visit http://127.0.0.1:8001


Test Case and Lint

lint source code

$ npm run lint

Run all test cases

$ npm test

Run test cases for one file

$ npm test -- components/button/__tests__/index.test.js

Update snapshot files

$ npm test -- -u

Publish site to gh-pages

$ npm update && npm run deploy

npm publish tip for Administrators:轮值规则和版本发布流程

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.