vectify 2.0.0

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.
Files changed (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +679 -0
  3. package/README.zh-CN.md +683 -0
  4. package/dist/chunk-4BWKFV7W.mjs +1311 -0
  5. package/dist/chunk-CIKTK6HI.mjs +96 -0
  6. package/dist/cli.d.mts +1 -0
  7. package/dist/cli.d.ts +1 -0
  8. package/dist/cli.js +1483 -0
  9. package/dist/cli.mjs +56 -0
  10. package/dist/helpers-UPZEBRGK.mjs +26 -0
  11. package/dist/index.d.mts +281 -0
  12. package/dist/index.d.ts +281 -0
  13. package/dist/index.js +1463 -0
  14. package/dist/index.mjs +27 -0
  15. package/dist/templates/angular/component.ts.hbs +121 -0
  16. package/dist/templates/angular/createIcon.ts.hbs +116 -0
  17. package/dist/templates/astro/component.astro.hbs +110 -0
  18. package/dist/templates/astro/createIcon.astro.hbs +111 -0
  19. package/dist/templates/lit/component.js.hbs +12 -0
  20. package/dist/templates/lit/component.ts.hbs +19 -0
  21. package/dist/templates/lit/createIcon.js.hbs +98 -0
  22. package/dist/templates/lit/createIcon.ts.hbs +99 -0
  23. package/dist/templates/preact/component.jsx.hbs +8 -0
  24. package/dist/templates/preact/component.tsx.hbs +11 -0
  25. package/dist/templates/preact/createIcon.jsx.hbs +101 -0
  26. package/dist/templates/preact/createIcon.tsx.hbs +121 -0
  27. package/dist/templates/qwik/component.jsx.hbs +7 -0
  28. package/dist/templates/qwik/component.tsx.hbs +8 -0
  29. package/dist/templates/qwik/createIcon.jsx.hbs +100 -0
  30. package/dist/templates/qwik/createIcon.tsx.hbs +111 -0
  31. package/dist/templates/react/component.jsx.hbs +8 -0
  32. package/dist/templates/react/component.tsx.hbs +11 -0
  33. package/dist/templates/react/createIcon.jsx.hbs +100 -0
  34. package/dist/templates/react/createIcon.tsx.hbs +117 -0
  35. package/dist/templates/solid/component.tsx.hbs +10 -0
  36. package/dist/templates/solid/createIcon.jsx.hbs +127 -0
  37. package/dist/templates/solid/createIcon.tsx.hbs +139 -0
  38. package/dist/templates/svelte/component.js.svelte.hbs +9 -0
  39. package/dist/templates/svelte/component.ts.svelte.hbs +10 -0
  40. package/dist/templates/svelte/icon.js.svelte.hbs +123 -0
  41. package/dist/templates/svelte/icon.ts.svelte.hbs +124 -0
  42. package/dist/templates/template-engine.ts +107 -0
  43. package/dist/templates/vanilla/component.ts.hbs +8 -0
  44. package/dist/templates/vanilla/createIcon.js.hbs +111 -0
  45. package/dist/templates/vanilla/createIcon.ts.hbs +124 -0
  46. package/dist/templates/vue/component.js.vue.hbs +21 -0
  47. package/dist/templates/vue/component.ts.vue.hbs +22 -0
  48. package/dist/templates/vue/icon.js.vue.hbs +155 -0
  49. package/dist/templates/vue/icon.ts.vue.hbs +157 -0
  50. package/package.json +78 -0
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "vectify",
3
+ "version": "2.0.0",
4
+ "description": "A powerful command-line tool to generate React, Vue, and Svelte icon components from SVG files",
5
+ "author": "Xiaobing Zhu <hellozxb252@gmail.com>",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/hixb/vectify#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/hixb/vectify.git"
11
+ },
12
+ "bugs": "https://github.com/hixb/vectify/issues",
13
+ "keywords": [
14
+ "svg",
15
+ "icon",
16
+ "icons",
17
+ "cli",
18
+ "react",
19
+ "vue",
20
+ "svelte",
21
+ "component",
22
+ "generator",
23
+ "typescript",
24
+ "vectify",
25
+ "vector"
26
+ ],
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "import": "./dist/index.mjs",
31
+ "require": "./dist/index.js"
32
+ }
33
+ },
34
+ "main": "./dist/index.js",
35
+ "module": "./dist/index.mjs",
36
+ "types": "./dist/index.d.ts",
37
+ "bin": {
38
+ "vectify": "./dist/cli.js"
39
+ },
40
+ "files": [
41
+ "README.md",
42
+ "dist"
43
+ ],
44
+ "engines": {
45
+ "node": ">=18.0.0"
46
+ },
47
+ "dependencies": {
48
+ "chalk": "^5.3.0",
49
+ "cheerio": "^1.1.2",
50
+ "chokidar": "^3.5.3",
51
+ "commander": "^11.1.0",
52
+ "domhandler": "^5.0.3",
53
+ "handlebars": "^4.7.8",
54
+ "inquirer": "^9.2.12",
55
+ "jiti": "^2.6.1",
56
+ "ora": "^7.0.1",
57
+ "svgo": "^3.0.0"
58
+ },
59
+ "devDependencies": {
60
+ "@antfu/eslint-config": "^7.0.0",
61
+ "@changesets/cli": "^2.29.8",
62
+ "@types/inquirer": "^9.0.7",
63
+ "@types/node": "^22.10.5",
64
+ "eslint": "^9.39.2",
65
+ "tsup": "^8.5.1",
66
+ "typescript": "^5.9.3",
67
+ "vitest": "^4.0.17"
68
+ },
69
+ "scripts": {
70
+ "build": "tsup",
71
+ "dev": "tsup --watch",
72
+ "test": "vitest run",
73
+ "test:watch": "vitest",
74
+ "lint": "eslint .",
75
+ "lint:fix": "eslint . --fix",
76
+ "clean": "rm -rf dist"
77
+ }
78
+ }