Thank you for using STDF.
Below are guidelines for submitting feedback or code to STDF. Before submitting an issue or PR to STDF, please take a few minutes to read the following.
Before local development, please make sure that Git and Node.js or Bun are installed in your development environment.
Debugging STDF requires an engineering environment. For this purpose, a simple Demo project is provided. STDF itself is not limited by the Node version, and the Demo uses Vite for development, so please ensure that your Node.js version >= 14.18+, refer to the Vite official website.
Before submitting a PR after you have made code modifications, please ensure that you have formatted the code and passed the code formatting check. You can install relevant editor plugins or use the command line for code formatting.
Recommended installations:
Because the rollup-plugin-stdf-icon packages that the demo depends on are locally built, please build this packages first.
## 1. Clone the STDF repository and enter
git clone git@github.com:dufu1991/stdf.git
cd stdf
## 2. Build the rollup-plugin-stdf-icon package
cd packages/rollup-plugin-stdf-icon
## Install dependencies
bun i
## or
pnpm i
## or
npm i
## Build package
bun run build
## or
npm run build
## 3. Use the Demo project to debug STDF
cd demo
## Install dependencies
bun i
## or
pnpm i
## or
npm i
## Start Demo
bun dev_en
## or
npm run dev_en
After the startup is successful, you can open http://localhost:8888 in the browser to view the effect. Please switch the developer tools of the browser to the mobile mode.
You can modify the component source code under the packages/stdf/components directory and view the modification effect in real-time. Note that both VS Code and WebStorm support directly jumping to the component source code when calling the component.
If you don't want to develop locally, you can choose to use StackBlitz to debug online. Just open STDF Demo to start online debugging.
If you are submitting a Pull Request on GitHub for the first time, you can read the following two articles to learn:
doc/components directory. Depending on the specific modification content, you may need to modify the api, FAQ, guide, version, and other documents. For modifications to version, please add tags. Please refer to the STDF Version tag for specific details.bun i or pnpm i or npm i to install dependencies.pnpm run format or npm run format in the command line to format the code.pnpm run lint or npm run lint to check the code formatting.When submitting a Pull Request, please note: