mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
1.2 KiB
1.2 KiB
Develop Guidelines
Git Commit Message Style
You MUST follow Angular Commit Format.
If you want see some example, see Angular Commits on Github.
Coding Style
Javascript Style
You MUST follow Standard JS.
SCSS Style
Run npm run lint-style
to check styles.
Check Both
Run npm run lint
You MUST fix all lint warnings and errors before you push your branch.
Unit test
If you create a component, you MUST add unit test for it.
Run npm run test
to test all components.
Run npm run test-cov
to test all components and see detailed test coverage report.
See How Component Works
- Run
npm run dev
- Open
http://localhost:8086/
in browser.
Add Your Own Component
There is no guideline for now. If you want to know how to do it, you can explore by yourself or ask lecong.zhang@tusimple.ai
.
Publish a New Version
- You MUST change your version according to semver
npm run release
- You MAY publish documentation by running
npm run release-doc