TDesign Icon repository is created to manage all TDesign Icons resources and packages. You can also clone this repository to generate your own icon resources and packages as well.
Add SVG Source Files ⛽️
please add all icon svg source file into svg/ dir.
Generate Resources 🏗
execute pnpm run generate to update icon resource of all frameworks within packages/ dir and the iconfont and svgsprite resource within resources/ dir.
If you have updated the original icon resources, please execute pnpm run generate again.
Update Versions and CHANGELOG 🔖
execute npx changeset, and choose the version number change rules for each package according to the specific situation, and fill in the content of the CHANGELOG.
then execute pnpm changeset version,the new content of CHANGELOG will be injected into the package.json and CHANGELOG of each framework package in the packages/ directory in turn.
Build NPM Packages 📦
execute pnpm run --filter "tdesign-icons-*" build to build all framework packages.
Publish NPM Packages 🚀
execute pnpm publish -r to publish all framework packages.
License
The MIT License. Please see the license file for more information.
English | 简体中文
TDesign Icons is a mono-repo for TDesign Icons packages and resources management.
Resources and Packages
Development Guide
TDesign Icon repository is created to manage all TDesign Icons resources and packages. You can also clone this repository to generate your own icon resources and packages as well.
Add SVG Source Files ⛽️
please add all icon svg source file into
svg/dir.Generate Resources 🏗
execute
pnpm run generateto update icon resource of all frameworks withinpackages/dir and the iconfont and svgsprite resource withinresources/dir.If you have updated the original icon resources, please execute
pnpm run generateagain.Update Versions and CHANGELOG 🔖
execute
npx changeset, and choose the version number change rules for each package according to the specific situation, and fill in the content of theCHANGELOG.then execute
pnpm changeset version,the new content ofCHANGELOGwill be injected into the package.json andCHANGELOGof each framework package in thepackages/directory in turn.Build NPM Packages 📦
execute
pnpm run --filter "tdesign-icons-*" buildto build all framework packages.Publish NPM Packages 🚀
execute
pnpm publish -rto publish all framework packages.License
The MIT License. Please see the license file for more information.