mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
Page:
Development
Pages
API Naming rules
Ant Design 设计基础简版
CSS in JS 迁移指南
Code convention for antd
Collaborators
Configuration for Documentation and Demo
Cookbook
Development
Document types conventions
FAQ
Home
PR principle
PR 规范
Template for Bug Report in IE8 9
Unique Panel Component
v5 API 废弃流程
什么是最小化重现,为什么这是必需的?
老版本和beta版本文档发布流程
设计文档上传流程
轮值规则和版本发布流程
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
// change start theme
$ DEV_THEME=dark 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:轮值规则和版本发布流程
Run Visual-Regression Diff locally
Warning
ImageSnapshots from target branch should named as
imageSnapshots-{targetBranch}
in projectRoot, likeimageSnapshots-master
.
Tip
You can download imageSnapshots from target branch or run
npm run test-image
locally on target branch to generate imageSnapshots
npm run test-image
# --base-ref should be the target branch you want to compare
LOCAL=1 npm run test:visual-regression -- --base-ref=master --pr-id=anything
- Home
- Cookbook
- FAQ
- Template for Bug Report in IE8 9
- Contributing
- Maintaining
- Design