Contributing
May 6, 2026 ยท View on GitHub
First, thanks for being interested in contributing on this project!
Pre-request
Before starting, ensure your machine is having:
Node >= 24
pnpm >= 8
Setup
Fork Vexip UI and clone to your local machine and install dependencies:
pnpm install # pnpm i
Then you need to build once the packages under common (IMPORTANT):
pnpm run build:common
Component Development
We use a Vite project in dev-server a development server.
You can use the following command to start development server for specific component:
pnpm run dev [component]
After the server is successfully started, the demos of the components specified under docs/demos will be used as development cases.
The development server uses 8008 port and Chinese demos by default, you can add -p and -l parameters to the command to specify the port and language respectively:
pnpm run dev [component] -p [port] -l [language]
Documentation Development
We use VitePress as the documentation framework. You can start it locally with the following command:
pnpm run dev:docs
Create New Component
You can quickly create a new component using template files:
pnpm run create [component]
Wait patiently for the files to be created, then you can check the files in the following locations:
components/[component]/index.tscomponents/[component]/props.tscomponents/[component]/css.tscomponents/[component]/style.tscomponents/[component]/[component].vuecomponents/[component]/tests/ssr.spec.tsxcomponents/[component]/tests/[component].spec.tsxdocs/demos/[component]/basis/demo.en-US.vuedocs/demos/[component]/basis/demo.zh-CN.vuedocs/en-US/component/[component].mddocs/zh-CN/component/[component].mdstyle/[component].scss
In addition to the above template files, we also have some file name conventions:
components/[component]/symbol.tsis used to define types and some common constants and variablescomponents/[component]/helpers.tsis used to define some dedicated helper methodscomponents/[component]/hooks.tsis used to define some dedicated hook methods
After confirming, you can execute the bootstrap command:
pnpm run bootstrap
After finished, you can start developing the component and its documentation.