Thank you for using STDF.
Below are guidelines for submitting feedback or code to STDF. Please take a few minutes to read through this content before submitting an issue or PR to STDF.
Before starting local development, please ensure your development environment has Git and Node.js or Bun installed.
Debugging STDF requires a project environment, for which we provide a simple Demo project. STDF itself is not restricted by Node version, but since the Demo uses Vite for development, please ensure your Node.js version is >= 14.18+, refer to Vite official website.
After modifying the code and before submitting a PR, please ensure the code is formatted and passes code format checks. You can install relevant editor plugins or format through the command line.
Recommended installations:
Follow the steps below to quickly start STDF Demo locally.
Because the rollup-plugin-stdf-icon package that the Demo depends on is built locally, please build this package first.
## 1. Clone the STDF repository and switch to the next branch
git clone git@github.com:any-tdf/stdf.git
cd stdf
git checkout next
## 2. Build the rollup-plugin-stdf-icon package
cd packages/rollup-plugin-stdf-icon
## Install dependencies
pnpm i
## Build package
pnpm build
## 3. Debug STDF
cd packages/stdf
## Install dependencies
pnpm i
## Start Demo
pnpm dev
## 1. Clone the STDF repository and switch to the next branch
git clone git@github.com:any-tdf/stdf.git
cd stdf
git checkout next
## 2. Build the rollup-plugin-stdf-icon package
cd packages/rollup-plugin-stdf-icon
## Install dependencies
npm i
## Build package
npm run build
## 3. 调试 STDF
cd packages/stdf
## Install dependencies
npm i
## Start Demo
npm run dev
## 1. Clone the STDF repository and switch to the next branch
git clone git@github.com:any-tdf/stdf.git
cd stdf
git checkout next
## 2. Build the rollup-plugin-stdf-icon package
cd packages/rollup-plugin-stdf-icon
## Install dependencies
bun i
## Build package
bun build
## 3. Debug STDF
cd packages/stdf
## Install dependencies
bun i
## Start Demo
bun dev
## 1. Clone the STDF repository and switch to the next branch
git clone git@github.com:any-tdf/stdf.git
cd stdf
git checkout next
## 2. Build the rollup-plugin-stdf-icon package
cd packages/rollup-plugin-stdf-icon
## Install dependencies
yarn
## Build package
yarn build
## 3. Debug STDF
cd packages/stdf
## Install dependencies
yarn
## Start Demo
yarn dev
After starting successfully, you can view the effect in the browser by opening http://localhost:8888, please switch the developer tools of the browser to the mobile mode.
You can modify the component source code in the packages/stdf/src/lib/components directory and view the modification effect in real time. Note that VS Code and WebStorm both support jumping to the component source code when calling the component.
If you don't want to develop locally, you can choose to use StackBlitz for online simple debugging. Simply open NextSTDF Demo to start online debugging.
If you are submitting your first Pull Request on GitHub, you can read the following two articles to learn:
docs/mds/components directory. Depending on the specific modification content, you may need to modify the api, FAQ, guide, version, etc. documents. For the modification of the version, please add the tag, refer to STDF Version tag.packages/stdf directory, execute pnpm i or npm i or bun i to install dependencies.When submitting a Pull Request, please note the following: