https://github.com/mrdulin/dm-icons
SVG Icons for Dealing Matrix LLC
https://github.com/mrdulin/dm-icons
library react svg svg-icons
Last synced: about 1 month ago
JSON representation
SVG Icons for Dealing Matrix LLC
- Host: GitHub
- URL: https://github.com/mrdulin/dm-icons
- Owner: mrdulin
- License: mit
- Created: 2024-12-05T09:49:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-05-06T06:40:05.000Z (about 2 months ago)
- Last Synced: 2026-05-19T15:27:16.390Z (about 2 months ago)
- Topics: library, react, svg, svg-icons
- Language: TypeScript
- Homepage: https://mrdulin.github.io/dm-icons/
- Size: 7.28 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dm-icons

## Packages
| Framework | Package name | Latest Version | Download stats | Bundle Size | Package Size |
| --- | --- | --- | --- | --- | --- |
| SVG | [@d-matrix/icons-svg](./packages/icons-svg) | [](https://www.npmjs.com/package/@d-matrix/icons-svg) |  | | [](https://packagephobia.com/result?p=@d-matrix/icons-svg) |
| React | [@d-matrix/icons-react](./packages/icons-react) | [](https://www.npmjs.com/package/@d-matrix/icons-react) |  |  | [](https://packagephobia.com/result?p=@d-matrix/icons-react) |
## 环境
- Nodejs: `>=18`
## 本地开发
安装依赖
```sh
npm install
```
## 添加新图标
添加svg文件到`packages/icons-svg/src/public`文件夹中, 更新包版本
```sh
npm version minor --workspace=@d-matrix/icons-svg
```
启动dev server
```sh
npm run dev
```
访问`http://localhost:5173/dm-icons/`服务,预览svg生成的react组件
## 发布
如果要手动发布`@d-matrix/icons-svg`包
```bash
cd packages/icons-svg && npm run pb
```
git提交所有变更文件,提交后更新`@d-matrix/icons-react`包的版本, 根目录下执行
```sh
npm version minor --workspace=@d-matrix/icons-react
```
更新完成后,由于`postversion` npm script 会更新`packages/icons-site`包的`@d-matrix/icons-react`依赖版本,及根目录的`package-lock.json`, 需再次提交变更文件,最后推送到远程仓库。
剩下的工作就交给GitHub Actions, GitHub Actions有三个工作流
1. 发布`@d-matrix/icons-react`包和`@d-matrix/icons-svg`包到npm registry
2. 发布图标预览页到 Github Pages
3. 自动创建一个`vX.X.X`的release (`@d-matrix/icons-react`包的版本)