svger-cli 2.0.8 → 3.1.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "svger-cli",
3
- "version": "2.0.8",
4
- "description": "Enterprise-grade, zero-dependency SVG to component converter supporting React, React Native, Vue, Angular, Svelte, Solid, Lit, Preact & Vanilla. Features auto-generated TypeScript exports, responsive design, themes, performance optimization & 85% faster processing than SVGR.",
3
+ "version": "3.1.0",
4
+ "description": "Enterprise-grade, zero-dependency SVG to component converter with official Webpack, Vite, Rollup, Babel, Next.js & Jest integrations. Supporting React, React Native, Vue, Angular, Svelte, Solid, Lit, Preact & Vanilla. Features auto-generated TypeScript exports, HMR, responsive design, themes & 85% faster processing than SVGR.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "type": "module",
@@ -15,6 +15,56 @@
15
15
  "import": "./dist/index.js",
16
16
  "default": "./dist/index.js"
17
17
  },
18
+ "./webpack": {
19
+ "types": "./dist/integrations/webpack.d.ts",
20
+ "import": "./dist/integrations/webpack.js",
21
+ "default": "./dist/integrations/webpack.js"
22
+ },
23
+ "./webpack-loader": {
24
+ "types": "./dist/integrations/webpack.d.ts",
25
+ "import": "./dist/integrations/webpack.js",
26
+ "default": "./dist/integrations/webpack.js"
27
+ },
28
+ "./vite": {
29
+ "types": "./dist/integrations/vite.d.ts",
30
+ "import": "./dist/integrations/vite.js",
31
+ "default": "./dist/integrations/vite.js"
32
+ },
33
+ "./rollup": {
34
+ "types": "./dist/integrations/rollup.d.ts",
35
+ "import": "./dist/integrations/rollup.js",
36
+ "default": "./dist/integrations/rollup.js"
37
+ },
38
+ "./babel": {
39
+ "types": "./dist/integrations/babel.d.ts",
40
+ "import": "./dist/integrations/babel.js",
41
+ "default": "./dist/integrations/babel.js"
42
+ },
43
+ "./babel-plugin": {
44
+ "types": "./dist/integrations/babel.d.ts",
45
+ "import": "./dist/integrations/babel.js",
46
+ "default": "./dist/integrations/babel.js"
47
+ },
48
+ "./nextjs": {
49
+ "types": "./dist/integrations/nextjs.d.ts",
50
+ "import": "./dist/integrations/nextjs.js",
51
+ "default": "./dist/integrations/nextjs.js"
52
+ },
53
+ "./jest": {
54
+ "types": "./dist/integrations/jest-preset.d.ts",
55
+ "import": "./dist/integrations/jest-preset.js",
56
+ "default": "./dist/integrations/jest-preset.js"
57
+ },
58
+ "./jest-transformer": {
59
+ "types": "./dist/integrations/jest-preset.d.ts",
60
+ "import": "./dist/integrations/jest-preset.js",
61
+ "default": "./dist/integrations/jest-preset.js"
62
+ },
63
+ "./jest-preset": {
64
+ "types": "./dist/integrations/jest-preset.d.ts",
65
+ "import": "./dist/integrations/jest-preset.js",
66
+ "default": "./dist/integrations/jest-preset.js"
67
+ },
18
68
  "./package.json": "./package.json"
19
69
  },
20
70
  "files": [
@@ -27,6 +77,7 @@
27
77
  "SECURITY.md",
28
78
  "DEVELOPMENT.md",
29
79
  "docs/**/*.md",
80
+ "examples/**/*.js",
30
81
  ".svgerconfig.example.json"
31
82
  ],
32
83
  "scripts": {
@@ -34,14 +85,18 @@
34
85
  "build:watch": "tsc -p tsconfig.json --watch",
35
86
  "clean": "node -e \"require('fs').rmSync('dist', {recursive: true, force: true})\"",
36
87
  "dev": "ts-node --esm src/cli.ts",
37
- "test": "npm run test:frameworks && npm run test:config && npm run test:e2e",
88
+ "test": "npm run test:frameworks && npm run test:config && npm run test:e2e && npm run test:integrations",
89
+ "test:jest": "jest --passWithNoTests",
90
+ "test:unit": "jest --testPathPattern='src/__tests__' --passWithNoTests",
38
91
  "test:frameworks": "node frameworks.test.js",
39
92
  "test:config": "tsc tests/config-options.test.ts --outDir dist-tests --module es2022 --target es2022 --moduleResolution bundler && node dist-tests/config-options.test.js",
40
93
  "test:e2e": "tsc tests/e2e-complete.test.ts --outDir dist-tests --module es2022 --target es2022 --moduleResolution bundler && node dist-tests/e2e-complete.test.js",
94
+ "test:integrations": "node tests/integrations/verify-integrations.mjs",
41
95
  "test:watch": "jest --watch",
42
96
  "test:coverage": "jest --coverage",
43
97
  "test:integration": "jest --testPathPattern=integration",
44
- "test:all": "npm run test:frameworks && npm run test:config && npm run test:e2e",
98
+ "test:all": "npm run test:jest && npm run test:frameworks && npm run test:config && npm run test:e2e",
99
+ "prepublishOnly": "npm run build",
45
100
  "lint": "eslint src --ext .ts,.tsx",
46
101
  "lint:fix": "eslint src --ext .ts,.tsx --fix",
47
102
  "typecheck": "tsc --noEmit",
@@ -76,6 +131,25 @@
76
131
  "batch-processing",
77
132
  "icon-generation",
78
133
  "frontend-tooling",
134
+ "webpack",
135
+ "webpack-plugin",
136
+ "webpack-loader",
137
+ "vite",
138
+ "vite-plugin",
139
+ "rollup",
140
+ "rollup-plugin",
141
+ "babel",
142
+ "babel-plugin",
143
+ "babel-transform",
144
+ "nextjs",
145
+ "next-js",
146
+ "jest",
147
+ "jest-preset",
148
+ "jest-transformer",
149
+ "build-tools",
150
+ "bundler",
151
+ "hmr",
152
+ "hot-module-replacement",
79
153
  "web-components",
80
154
  "component-library",
81
155
  "svg-optimization",