svger-cli 2.0.3 → 2.0.4
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/.svgerconfig.example.json +93 -12
- package/README.md +407 -205
- package/dist/config.js +84 -1
- package/dist/processors/svg-processor.js +8 -6
- package/dist/services/config.js +65 -15
- package/dist/services/svg-service.js +13 -21
- package/dist/types/index.d.ts +72 -20
- package/dist/utils/native.d.ts +3 -2
- package/dist/utils/native.js +6 -2
- package/package.json +1 -1
|
@@ -1,38 +1,119 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/faezemohades/svger-cli/main/schemas/config.schema.json",
|
|
3
|
+
|
|
4
|
+
"_comment": "Complete Configuration Schema - This file demonstrates all available configuration options for svger-cli",
|
|
5
|
+
|
|
6
|
+
"// Source & Output": "",
|
|
3
7
|
"source": "./src/assets/svg",
|
|
4
8
|
"output": "./src/components/icons",
|
|
9
|
+
|
|
10
|
+
"// Framework Configuration": "",
|
|
5
11
|
"framework": "react",
|
|
6
12
|
"typescript": true,
|
|
13
|
+
"componentType": "functional",
|
|
14
|
+
|
|
15
|
+
"// Processing Options": "",
|
|
7
16
|
"watch": false,
|
|
8
17
|
"parallel": true,
|
|
9
18
|
"batchSize": 10,
|
|
19
|
+
"maxConcurrency": 4,
|
|
20
|
+
"cache": true,
|
|
21
|
+
|
|
22
|
+
"// Default Properties": "",
|
|
10
23
|
"defaultWidth": 24,
|
|
11
24
|
"defaultHeight": 24,
|
|
12
25
|
"defaultFill": "currentColor",
|
|
13
|
-
"
|
|
26
|
+
"defaultStroke": "none",
|
|
27
|
+
"defaultStrokeWidth": 1,
|
|
28
|
+
|
|
29
|
+
"// Styling Configuration": "",
|
|
14
30
|
"styleRules": {
|
|
15
31
|
"fill": "inherit",
|
|
16
|
-
"stroke": "none"
|
|
32
|
+
"stroke": "none",
|
|
33
|
+
"strokeWidth": "1",
|
|
34
|
+
"opacity": "1"
|
|
17
35
|
},
|
|
36
|
+
|
|
37
|
+
"// Responsive Design": "",
|
|
18
38
|
"responsive": {
|
|
19
|
-
"
|
|
20
|
-
"breakpoints": ["sm", "md", "lg"],
|
|
39
|
+
"breakpoints": ["sm", "md", "lg", "xl"],
|
|
21
40
|
"values": {
|
|
22
|
-
"width": ["20px", "24px", "32px"],
|
|
23
|
-
"height": ["20px", "24px", "32px"]
|
|
41
|
+
"width": ["16px", "20px", "24px", "32px"],
|
|
42
|
+
"height": ["16px", "20px", "24px", "32px"]
|
|
24
43
|
}
|
|
25
44
|
},
|
|
45
|
+
|
|
46
|
+
"// Theme Configuration": "",
|
|
26
47
|
"theme": {
|
|
27
|
-
"mode": "
|
|
48
|
+
"mode": "auto",
|
|
28
49
|
"variables": {
|
|
29
|
-
"primary": "
|
|
30
|
-
"secondary": "#
|
|
50
|
+
"primary": "currentColor",
|
|
51
|
+
"secondary": "#6b7280",
|
|
52
|
+
"accent": "#3b82f6",
|
|
53
|
+
"background": "#ffffff",
|
|
54
|
+
"foreground": "#000000"
|
|
31
55
|
}
|
|
32
56
|
},
|
|
57
|
+
|
|
58
|
+
"// Animation Effects": "",
|
|
59
|
+
"animations": ["fadeIn", "slideIn", "bounce"],
|
|
60
|
+
|
|
61
|
+
"// Advanced Options": "",
|
|
62
|
+
"plugins": [
|
|
63
|
+
{
|
|
64
|
+
"name": "svg-optimizer",
|
|
65
|
+
"options": {
|
|
66
|
+
"removeComments": true,
|
|
67
|
+
"removeMetadata": true
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"exclude": ["*.test.svg", "deprecated/**"],
|
|
72
|
+
"include": ["icons/**", "illustrations/**"],
|
|
73
|
+
|
|
74
|
+
"// Error Handling": "",
|
|
75
|
+
"errorHandling": {
|
|
76
|
+
"strategy": "continue",
|
|
77
|
+
"maxRetries": 3,
|
|
78
|
+
"timeout": 30000
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
"// Performance Settings": "",
|
|
33
82
|
"performance": {
|
|
34
83
|
"optimization": "balanced",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
84
|
+
"memoryLimit": 512,
|
|
85
|
+
"cacheTimeout": 3600000
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
"// Output Customization": "",
|
|
89
|
+
"outputConfig": {
|
|
90
|
+
"naming": "pascal",
|
|
91
|
+
"extension": "tsx",
|
|
92
|
+
"directory": "./src/components/icons"
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
"// Framework-Specific Configurations": "",
|
|
96
|
+
"react": {
|
|
97
|
+
"componentType": "functional",
|
|
98
|
+
"forwardRef": true,
|
|
99
|
+
"memo": false,
|
|
100
|
+
"propsInterface": "SVGProps",
|
|
101
|
+
"styledComponents": false,
|
|
102
|
+
"cssModules": false
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
"vue": {
|
|
106
|
+
"api": "composition",
|
|
107
|
+
"setup": true,
|
|
108
|
+
"typescript": true,
|
|
109
|
+
"scoped": true,
|
|
110
|
+
"cssVariables": true
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
"angular": {
|
|
114
|
+
"standalone": true,
|
|
115
|
+
"signals": true,
|
|
116
|
+
"changeDetection": "OnPush",
|
|
117
|
+
"encapsulation": "Emulated"
|
|
37
118
|
}
|
|
38
|
-
}
|
|
119
|
+
}
|