@hugeicons/migrate 0.1.0 → 0.1.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/LICENSE +21 -0
- package/README.md +26 -14
- package/dist/main.js +0 -0
- package/dist/utils/html-report.d.ts.map +1 -1
- package/dist/utils/html-report.js +21 -6
- package/dist/utils/html-report.js.map +1 -1
- package/package.json +12 -13
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Hugeicons
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
## Overview
|
|
22
22
|
|
|
23
|
-
`@hugeicons/migrate` is a powerful CLI tool that helps you migrate your React projects from popular icon libraries
|
|
23
|
+
`@hugeicons/migrate` is a powerful CLI tool that helps you migrate your React projects from popular icon libraries (Lucide, FontAwesome, Heroicons, Feather, Tabler, Phosphor) to [Hugeicons](https://hugeicons.com) — 46,000+ icons across 10 styles.
|
|
24
24
|
|
|
25
25
|
### Features
|
|
26
26
|
|
|
@@ -93,7 +93,7 @@ npx @hugeicons/migrate scan <project-path>
|
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
**Output includes:**
|
|
96
|
-
- Detected icon libraries (Lucide, Heroicons,
|
|
96
|
+
- Detected icon libraries (Lucide, FontAwesome, Heroicons, Feather, Tabler, Phosphor)
|
|
97
97
|
- Number of icon usages per library
|
|
98
98
|
- Files containing icons
|
|
99
99
|
|
|
@@ -139,13 +139,16 @@ Lists available backups and lets you choose which one to restore.
|
|
|
139
139
|
|
|
140
140
|
## Supported Libraries
|
|
141
141
|
|
|
142
|
-
| Library | Status |
|
|
143
|
-
|
|
144
|
-
| Lucide React | ✅ Fully Supported |
|
|
145
|
-
|
|
|
146
|
-
|
|
|
147
|
-
| Feather Icons |
|
|
148
|
-
|
|
|
142
|
+
| Library | Package | Status |
|
|
143
|
+
|---------|---------|--------|
|
|
144
|
+
| Lucide React | `lucide-react` | ✅ Fully Supported |
|
|
145
|
+
| FontAwesome | `@fortawesome/react-fontawesome`, `@fortawesome/free-solid-svg-icons`, etc. | ✅ Fully Supported |
|
|
146
|
+
| Heroicons | `@heroicons/react` | ✅ Fully Supported |
|
|
147
|
+
| Feather Icons | `react-feather`, `feather-icons-react` | ✅ Fully Supported |
|
|
148
|
+
| Tabler Icons | `@tabler/icons-react` | ✅ Fully Supported |
|
|
149
|
+
| Phosphor Icons | `@phosphor-icons/react`, `phosphor-react` | ✅ Fully Supported |
|
|
150
|
+
|
|
151
|
+
Each library uses curated mapping files (70–90% coverage) plus fuzzy matching for unmapped icons, so migrations produce real Hugeicons icon names.
|
|
149
152
|
|
|
150
153
|
## How It Works
|
|
151
154
|
|
|
@@ -154,8 +157,15 @@ Lists available backups and lets you choose which one to restore.
|
|
|
154
157
|
The CLI scans your project for import statements from supported icon libraries:
|
|
155
158
|
|
|
156
159
|
```typescript
|
|
157
|
-
//
|
|
160
|
+
// Lucide / Heroicons / Feather / Tabler / Phosphor (direct components)
|
|
158
161
|
import { Home, Settings, User } from "lucide-react";
|
|
162
|
+
import { HomeIcon, UserIcon } from "@heroicons/react/24/solid";
|
|
163
|
+
import { IconHome, IconUser } from "@tabler/icons-react";
|
|
164
|
+
import { House, User } from "@phosphor-icons/react";
|
|
165
|
+
|
|
166
|
+
// FontAwesome (wrapper component)
|
|
167
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
168
|
+
import { faHome, faUser } from "@fortawesome/free-solid-svg-icons";
|
|
159
169
|
```
|
|
160
170
|
|
|
161
171
|
### 2. Mapping
|
|
@@ -173,12 +183,14 @@ Icons are mapped to their Hugeicons equivalents using our comprehensive mapping
|
|
|
173
183
|
The code is transformed to use Hugeicons:
|
|
174
184
|
|
|
175
185
|
```typescript
|
|
176
|
-
// After
|
|
186
|
+
// After (Lucide / Heroicons / Feather / Tabler / Phosphor)
|
|
177
187
|
import { HugeiconsIcon } from "@hugeicons/react";
|
|
178
|
-
import { Home01Icon, Settings01Icon,
|
|
188
|
+
import { Home01Icon, Settings01Icon, UserIcon } from "@hugeicons/core-free-icons";
|
|
179
189
|
|
|
180
|
-
// Usage
|
|
181
190
|
<HugeiconsIcon icon={Home01Icon} size={24} />
|
|
191
|
+
|
|
192
|
+
// After (FontAwesome: <FontAwesomeIcon icon={faUser} /> → Hugeicons)
|
|
193
|
+
<HugeiconsIcon icon={UserIcon} size={24} />
|
|
182
194
|
```
|
|
183
195
|
|
|
184
196
|
### 4. Type Handling
|
|
@@ -272,7 +284,7 @@ The CLI handles patterns like `<item.icon />` by wrapping them:
|
|
|
272
284
|
|
|
273
285
|
## Links
|
|
274
286
|
|
|
275
|
-
- [Hugeicons](https://hugeicons.com) - Browse
|
|
287
|
+
- [Hugeicons](https://hugeicons.com) - Browse 46,000+ icons across 10 styles
|
|
276
288
|
- [Documentation](https://hugeicons.com/docs)
|
|
277
289
|
- [Icon Search](https://hugeicons.com/icons)
|
|
278
290
|
- [GitHub](https://github.com/hugeicons/migrate)
|
package/dist/main.js
CHANGED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-report.d.ts","sourceRoot":"","sources":["../../src/utils/html-report.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAOD;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,aAAa,GACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"html-report.d.ts","sourceRoot":"","sources":["../../src/utils/html-report.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAOD;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,aAAa,GACrB,MAAM,CA+lBR;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,aAAa,GAAE,OAAc,GAC5B,OAAO,CAAC,MAAM,CAAC,CAoBjB"}
|
|
@@ -27,15 +27,30 @@ export function generateHtmlReport(result, options) {
|
|
|
27
27
|
// Extract old icon name from original (e.g., <Sun ... /> or <Check ...)
|
|
28
28
|
const oldMatch = change.original.match(/<(\w+)/);
|
|
29
29
|
if (oldMatch) {
|
|
30
|
-
|
|
30
|
+
let oldIcon = oldMatch[1];
|
|
31
|
+
// For FontAwesome, extract the actual icon name from icon={faIconName}
|
|
32
|
+
if (oldIcon === 'FontAwesomeIcon') {
|
|
33
|
+
const faIconMatch = change.original.match(/icon=\{(\w+)\}/);
|
|
34
|
+
if (faIconMatch) {
|
|
35
|
+
oldIcon = faIconMatch[1]; // e.g., faCoffee, faUser
|
|
36
|
+
}
|
|
37
|
+
}
|
|
31
38
|
allMigratedIcons.add(oldIcon);
|
|
32
|
-
//
|
|
33
|
-
|
|
39
|
+
// Extract new icon from replacement
|
|
40
|
+
// First check for HugeiconsIcon wrapper: icon={IconName}
|
|
41
|
+
let newMatch = change.replacement.match(/icon=\{(\w+)\}/);
|
|
42
|
+
// If not found, check for direct component: <IconName
|
|
43
|
+
if (!newMatch) {
|
|
44
|
+
newMatch = change.replacement.match(/<(\w+Icon)/);
|
|
45
|
+
}
|
|
34
46
|
if (newMatch) {
|
|
35
47
|
const newIcon = newMatch[1];
|
|
36
|
-
|
|
37
|
-
if (
|
|
38
|
-
|
|
48
|
+
// Only add if it's an actual mapping (not the same name)
|
|
49
|
+
if (oldIcon !== newIcon) {
|
|
50
|
+
const key = `${oldIcon}=>${newIcon}`;
|
|
51
|
+
if (!iconMappings.has(key)) {
|
|
52
|
+
iconMappings.set(key, { oldIcon, newIcon });
|
|
53
|
+
}
|
|
39
54
|
}
|
|
40
55
|
}
|
|
41
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-report.js","sourceRoot":"","sources":["../../src/utils/html-report.ts"],"names":[],"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
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CLI tool to migrate from popular icon libraries (Lucide, Heroicons, FontAwesome) to Hugeicons",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
"dist",
|
|
14
14
|
"README.md"
|
|
15
15
|
],
|
|
16
|
-
"scripts": {
|
|
17
|
-
"typecheck": "tsc --noEmit",
|
|
18
|
-
"lint": "tsc --noEmit",
|
|
19
|
-
"build": "tsc",
|
|
20
|
-
"clean": "rm -rf dist",
|
|
21
|
-
"start": "node dist/main.js",
|
|
22
|
-
"prepublishOnly": "pnpm run build"
|
|
23
|
-
},
|
|
24
16
|
"keywords": [
|
|
25
17
|
"hugeicons",
|
|
26
18
|
"icons",
|
|
@@ -51,12 +43,12 @@
|
|
|
51
43
|
"access": "public"
|
|
52
44
|
},
|
|
53
45
|
"dependencies": {
|
|
54
|
-
"@
|
|
55
|
-
"@inquirer/prompts": "^8.2.0",
|
|
46
|
+
"@inquirer/prompts": "^7.10.1",
|
|
56
47
|
"chalk": "^5.3.0",
|
|
57
48
|
"cli-table3": "^0.6.3",
|
|
58
49
|
"commander": "^12.0.0",
|
|
59
|
-
"ora": "^8.0.1"
|
|
50
|
+
"ora": "^8.0.1",
|
|
51
|
+
"@hugeicons/migrate-core": "0.1.2"
|
|
60
52
|
},
|
|
61
53
|
"devDependencies": {
|
|
62
54
|
"@types/node": "^20.10.0",
|
|
@@ -64,5 +56,12 @@
|
|
|
64
56
|
},
|
|
65
57
|
"engines": {
|
|
66
58
|
"node": ">=18.0.0"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"typecheck": "tsc --noEmit",
|
|
62
|
+
"lint": "tsc --noEmit",
|
|
63
|
+
"build": "tsc",
|
|
64
|
+
"clean": "rm -rf dist",
|
|
65
|
+
"start": "node dist/main.js"
|
|
67
66
|
}
|
|
68
|
-
}
|
|
67
|
+
}
|