-
Before opening issue please search for the keyword see whether the issue you encountered has been reported already. 🙏
-
Issues should be opened via Issue Template, fill in the form to provide sufficient information to reproduce the issue, so that our developers can help you verify and fix it
Insufficient information issue WILL BE CLOSED directly because we cannot reproduce them
- Issues that with feature request should to go to RFCs. This helps us managing the project.
Next section is for those who wants to help develop Element Plus.
You should be having:
NodeJS >= 16
Git > v2.20
Some of our compiling code used syntax that introduced in NodeJS>16.0 so you will be need to install that in advance.
- Click the fork button on the top right of this page.
- Download the project to your machine.
- Run commands below to bootstrap the this project.
cd $THE_PROJECT_PATH_YOU_DOWNLOADED
# If you haven't installed yet
pnpm install
Then you can following command to verify your installation.
pnpm t
pnpm format
Ah, now you have installed the code correctly, you can choose:
# If you would like to modify the website source code of https://element-plus.org
# It was made with [VitePress](https://vitepress.vuejs.org)
pnpm run docs:gen-locale # This generates locale files for your local development
pnpm run docs:dev
# If you would like to run a local playground to test out your changes against
# Some specific component
touch play/src/App.vue # Adding an entry for the play to run.
pnpm run dev
You can follow the LOCAL DEVELOPMENT GUIDE to do development more quickly.
If you would like to compile this project locally:
# This one line code would start compiling the code which was published to https://npmjs.com
pnpm build
If you would like to compile the website code locally:
pnpm docs:build
After you done your coding section, please note:
- Update the tests to cover all cases
- Update co-responding documentation if you are making changes against API
- Write a comprehensive commit message
- Push your local changes to your remote, and then pull request to the upstream.
- In the description section, you can add more information about your changes, to help the reviewers for better understanding the context here.
We prepared a commit message template for you to refer to, you can also follow the instruction of the CLI tool to generate commit message intuitively.
- With command
pnpm cz
- You can also write the commit message by hand, but make sure your commit message follows the rules.
We have a commit template
NOTE: PRs with unformatted commit message WILL NOT BE ACCEPTED
That's all, thanks for your contribution! 🤩