CONTRIBUTING.md
December 6, 2022 ยท View on GitHub
Fect UI - Vue Contributing Guide
Ready to start
We welcome everyone to join the construction of the project. As a pre requirement,you need to know what is Vue-next and have a preliminary understanding of Vue-next,if you don't know Vue-next this is a good learn document for Vue-next. If you don't know Git,basic operation of Git,you can refer to GitHub's help documentation.
- Fork this repository to your own account and then clone it.
- Create a new branch for your changes:
git checkout -b {BRANCH_NAME}. - Install a package management tools Yarn
and then update project dependenices
Yarn - Run commands in order:
make
- View your changes on your local document site.
At any time, you think it's ok, you can start the following steps to submit your amazing works:
- Run
yarn lintcheck the code style. - Run
yarn testto update & run your testcase. - Run
git commit -m '{YOUR_MESSAGE}'to commit changes. Commit info should be formatted by the rules. - Push code to your own repo and create PullRequest at GitHub.
Common steps
Create component
- Create a component folder in
packages/core/src. - Add an
importrecord topackages/core/src/index.ts - Create a document file at
docs/zh-cnanddocs/en-usanddocs/example,it will automatic logon. - Restart local server view changes:
yarn dev:site.
Create testcase
- This repository is using jest as unit test, So you don't need to introduce extra unit test lib.
- If you are creating a new component,and complete it,the testcase is required.
- If you only modify components,please note update test snapshot:
yarn test -u. - Please check coverage locally before submit.
Q & A
How can I update remote origin ?
- refer to here.
How to choose the target banch of PR ?
- If this is a feature, set to
mainbranch. All the others are set torcbranch.
How can i run this project ?
- We provide makefile. If you are using windows, Please manually run the instructions in the makefile
Get stuck
- Create new issue to tell us: create issue.