@npm-questionpro/wick-ui-icon 8.0.0 → 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -116,3 +116,72 @@ To develop locally, you can modify the SVG icons in the `svg/` directory and run
116
116
  ### Cleaning Up Unnecessary Files
117
117
 
118
118
  During the build process, unnecessary files (like LESS, SCSS, and HTML files) will be removed to ensure a clean output.
119
+
120
+ ---
121
+
122
+ # Icon Contribution Guide
123
+
124
+ Follow the steps below to create and add a new icon to the project:
125
+
126
+ ## Steps
127
+
128
+ ### 1. Download SVG Icons
129
+
130
+ - Open **Figma** and download the required icons in **SVG format**.
131
+
132
+ ### 2. Upload to Icomoon
133
+
134
+ - Go to the [Icomoon App](https://icomoon.io/app/).
135
+ - Upload the downloaded **SVG icons**.
136
+ - Verify that the icons render correctly.
137
+ - Download the generated package from Icomoon.
138
+
139
+ ### 3. Install Dependencies
140
+
141
+ Make sure the required dev dependencies are installed:
142
+
143
+ ```bash
144
+ pnpm install -D svgo svgtofont
145
+ ```
146
+
147
+ Run:
148
+
149
+ ```bash
150
+ pnpm install
151
+ ```
152
+
153
+ ### 4. Build the Package
154
+
155
+ ```bash
156
+ pnpm build
157
+ ```
158
+
159
+ ### 5. Version Update
160
+
161
+ Choose the appropriate version update:
162
+
163
+ ```bash
164
+ pnpm version patch # for bug fixes
165
+ pnpm version minor # for new features
166
+ pnpm version major # for breaking changes
167
+ ```
168
+
169
+ ### 6. Push to Repository
170
+
171
+ ```bash
172
+ git push
173
+ ```
174
+
175
+ ### 7. Generate Icons
176
+
177
+ Run the icon generation script:
178
+
179
+ ```bash
180
+ node wickIcon.js
181
+ ```
182
+
183
+ > ⚡ Make sure to run this command from the **wick-ui-lib** directory.
184
+
185
+ ---
186
+
187
+ ✅ Done! The new icons should now be available in the project.