@vef-framework/dev 1.0.135 → 2.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.
Files changed (197) hide show
  1. package/README +15 -0
  2. package/dist/cjs/index.cjs +23 -0
  3. package/dist/cjs/lint/commitlint.cjs +14 -0
  4. package/dist/cjs/lint/eslint.cjs +981 -0
  5. package/dist/cjs/lint/index.cjs +14 -0
  6. package/dist/cjs/lint/stylelint.cjs +92 -0
  7. package/dist/cjs/vite/chunks.cjs +42 -0
  8. package/dist/cjs/vite/config.cjs +83 -0
  9. package/dist/cjs/vite/constants.cjs +30 -0
  10. package/dist/cjs/vite/define.cjs +26 -0
  11. package/dist/cjs/vite/index.cjs +11 -0
  12. package/dist/cjs/vite/plugin-app-config.cjs +38 -0
  13. package/dist/cjs/vite/plugin-auto-enhance/core.cjs +147 -0
  14. package/dist/cjs/vite/plugin-auto-enhance/index.cjs +40 -0
  15. package/dist/cjs/vite/plugin-auto-enhance/plugins/index.cjs +10 -0
  16. package/dist/cjs/vite/plugin-auto-enhance/plugins/operation-column-width.cjs +229 -0
  17. package/dist/cjs/vite/plugin-conventional-config.cjs +91 -0
  18. package/dist/cjs/vite/plugin-eslint.cjs +24 -0
  19. package/dist/cjs/vite/plugin-html.cjs +216 -0
  20. package/dist/cjs/vite/plugin-icons.cjs +22 -0
  21. package/dist/cjs/vite/plugin-injection.cjs +20 -0
  22. package/dist/cjs/vite/plugin-inspect.cjs +15 -0
  23. package/dist/cjs/vite/plugin-react.cjs +80 -0
  24. package/dist/cjs/vite/plugin-router.cjs +49 -0
  25. package/dist/cjs/vite/plugin-stylelint.cjs +24 -0
  26. package/dist/cjs/vite/plugin-svgr.cjs +59 -0
  27. package/dist/cjs/vite/plugin-tsconfig-paths.cjs +14 -0
  28. package/dist/cjs/vite/postcss.cjs +13 -0
  29. package/dist/es/index.js +8 -0
  30. package/dist/es/lint/commitlint.js +10 -0
  31. package/dist/es/lint/eslint.js +958 -0
  32. package/dist/es/lint/index.js +4 -0
  33. package/dist/es/lint/stylelint.js +88 -0
  34. package/dist/es/vite/chunks.js +38 -0
  35. package/dist/es/vite/config.js +79 -0
  36. package/dist/es/vite/constants.js +15 -0
  37. package/dist/es/vite/define.js +22 -0
  38. package/dist/es/vite/index.js +3 -0
  39. package/dist/es/vite/plugin-app-config.js +34 -0
  40. package/dist/es/vite/plugin-auto-enhance/core.js +143 -0
  41. package/dist/es/vite/plugin-auto-enhance/index.js +32 -0
  42. package/dist/es/vite/plugin-auto-enhance/plugins/index.js +2 -0
  43. package/dist/es/vite/plugin-auto-enhance/plugins/operation-column-width.js +225 -0
  44. package/dist/es/vite/plugin-conventional-config.js +87 -0
  45. package/dist/es/vite/plugin-eslint.js +20 -0
  46. package/dist/es/vite/plugin-html.js +212 -0
  47. package/dist/es/vite/plugin-icons.js +17 -0
  48. package/dist/es/vite/plugin-injection.js +16 -0
  49. package/dist/es/vite/plugin-inspect.js +11 -0
  50. package/dist/es/vite/plugin-react.js +76 -0
  51. package/dist/es/vite/plugin-router.js +45 -0
  52. package/dist/es/vite/plugin-stylelint.js +20 -0
  53. package/dist/es/vite/plugin-svgr.js +55 -0
  54. package/dist/es/vite/plugin-tsconfig-paths.js +10 -0
  55. package/dist/es/vite/postcss.js +9 -0
  56. package/dist/types/index.d.ts +2 -0
  57. package/dist/types/lint/commitlint.d.ts +8 -0
  58. package/dist/types/lint/eslint.d.ts +2 -0
  59. package/dist/types/lint/index.d.ts +3 -0
  60. package/dist/types/lint/stylelint.d.ts +7 -0
  61. package/dist/types/vite/chunks.d.ts +10 -0
  62. package/dist/types/vite/config.d.ts +39 -0
  63. package/{types → dist/types/vite}/constants.d.ts +4 -0
  64. package/dist/types/vite/define.d.ts +12 -0
  65. package/dist/types/vite/index.d.ts +3 -0
  66. package/{types → dist/types/vite}/plugin-app-config.d.ts +2 -1
  67. package/dist/types/vite/plugin-auto-enhance/core.d.ts +35 -0
  68. package/dist/types/vite/plugin-auto-enhance/index.d.ts +30 -0
  69. package/dist/types/vite/plugin-auto-enhance/plugins/index.d.ts +1 -0
  70. package/dist/types/vite/plugin-auto-enhance/plugins/operation-column-width.d.ts +14 -0
  71. package/dist/types/vite/plugin-auto-enhance/types.d.ts +83 -0
  72. package/{types → dist/types/vite}/plugin-conventional-config.d.ts +2 -2
  73. package/dist/types/vite/plugin-eslint.d.ts +7 -0
  74. package/{types → dist/types/vite}/plugin-html.d.ts +1 -1
  75. package/dist/types/vite/plugin-icons.d.ts +8 -0
  76. package/{types → dist/types/vite}/plugin-injection.d.ts +1 -1
  77. package/{types → dist/types/vite}/plugin-inspect.d.ts +2 -1
  78. package/dist/types/vite/plugin-react.d.ts +25 -0
  79. package/{types → dist/types/vite}/plugin-router.d.ts +2 -2
  80. package/dist/types/vite/plugin-stylelint.d.ts +7 -0
  81. package/dist/types/vite/plugin-svgr.d.ts +7 -0
  82. package/{types → dist/types/vite}/plugin-tsconfig-paths.d.ts +2 -1
  83. package/dist/types/vite/postcss.d.ts +9 -0
  84. package/package.json +97 -74
  85. package/{tsconfig.app.json → tsconfig.base.json} +13 -9
  86. package/{client.d.ts → types.d.ts} +0 -6
  87. package/README.md +0 -25
  88. package/bin/hoist-patterns.js +0 -1
  89. package/bin/vef.js +0 -18
  90. package/cjs/cli.cjs +0 -5
  91. package/cjs/commitlint-config.cjs +0 -2
  92. package/cjs/config.cjs +0 -2
  93. package/cjs/constants.cjs +0 -2
  94. package/cjs/eslint-config.cjs +0 -2
  95. package/cjs/index.cjs +0 -2
  96. package/cjs/json/monaco.nls.json.cjs +0 -15920
  97. package/cjs/json/monaco.theme.github-light.json.cjs +0 -349
  98. package/cjs/modules.d.cjs +0 -2
  99. package/cjs/plugin-app-config.cjs +0 -2
  100. package/cjs/plugin-conventional-config.cjs +0 -12
  101. package/cjs/plugin-eslint.cjs +0 -2
  102. package/cjs/plugin-html.cjs +0 -17
  103. package/cjs/plugin-icons.cjs +0 -2
  104. package/cjs/plugin-initialization.cjs +0 -135
  105. package/cjs/plugin-injection.cjs +0 -3
  106. package/cjs/plugin-inspect.cjs +0 -2
  107. package/cjs/plugin-monaco-nls.cjs +0 -80
  108. package/cjs/plugin-react-swc.cjs +0 -2
  109. package/cjs/plugin-router.cjs +0 -11
  110. package/cjs/plugin-stylelint.cjs +0 -2
  111. package/cjs/plugin-svgr.cjs +0 -2
  112. package/cjs/plugin-tailwind.cjs +0 -2
  113. package/cjs/plugin-tailwindcss.cjs +0 -3
  114. package/cjs/plugin-tsconfig-paths.cjs +0 -2
  115. package/cjs/plugin-visualizer.cjs +0 -2
  116. package/cjs/plugin-webfont.cjs +0 -2
  117. package/cjs/stylelint-config.cjs +0 -2
  118. package/cjs/tailwind-config.cjs +0 -2
  119. package/cjs/types.cjs +0 -2
  120. package/esm/cli.js +0 -5
  121. package/esm/commitlint-config.js +0 -2
  122. package/esm/config.js +0 -2
  123. package/esm/constants.js +0 -2
  124. package/esm/eslint-config.js +0 -2
  125. package/esm/index.js +0 -2
  126. package/esm/json/monaco.nls.json.js +0 -15920
  127. package/esm/json/monaco.theme.github-light.json.js +0 -349
  128. package/esm/modules.d.js +0 -2
  129. package/esm/plugin-app-config.js +0 -2
  130. package/esm/plugin-conventional-config.js +0 -12
  131. package/esm/plugin-eslint.js +0 -2
  132. package/esm/plugin-html.js +0 -17
  133. package/esm/plugin-icons.js +0 -2
  134. package/esm/plugin-initialization.js +0 -135
  135. package/esm/plugin-injection.js +0 -3
  136. package/esm/plugin-inspect.js +0 -2
  137. package/esm/plugin-monaco-nls.js +0 -80
  138. package/esm/plugin-react-swc.js +0 -2
  139. package/esm/plugin-router.js +0 -11
  140. package/esm/plugin-stylelint.js +0 -2
  141. package/esm/plugin-svgr.js +0 -2
  142. package/esm/plugin-tailwind.js +0 -2
  143. package/esm/plugin-tailwindcss.js +0 -3
  144. package/esm/plugin-tsconfig-paths.js +0 -2
  145. package/esm/plugin-visualizer.js +0 -2
  146. package/esm/plugin-webfont.js +0 -2
  147. package/esm/stylelint-config.js +0 -2
  148. package/esm/tailwind-config.js +0 -2
  149. package/esm/types.js +0 -2
  150. package/template/.vscode/settings.json +0 -6
  151. package/template/_gitignore +0 -35
  152. package/template/_package.json +0 -43
  153. package/template/_tsconfig.json +0 -7
  154. package/template/commitlint.config.js +0 -3
  155. package/template/env/.env +0 -7
  156. package/template/env/.env.development +0 -0
  157. package/template/env/.env.production +0 -0
  158. package/template/env.d.ts +0 -1
  159. package/template/eslint.config.js +0 -3
  160. package/template/index.html +0 -0
  161. package/template/public/favicon.svg +0 -1
  162. package/template/src/main.ts +0 -145
  163. package/template/src/pages/__root.ts +0 -3
  164. package/template/src/pages/_common/access-denied.ts +0 -6
  165. package/template/src/pages/_common/login.ts +0 -8
  166. package/template/src/pages/_layout/index.tsx +0 -35
  167. package/template/src/pages/_layout/route.ts +0 -9
  168. package/template/src/pages/_layout/system/data-dictionary.tsx +0 -14
  169. package/template/src/pages/_layout/system/index.ts +0 -7
  170. package/template/src/pages/_layout/system/tenant.tsx +0 -14
  171. package/template/src/router/index.ts +0 -1
  172. package/template/style.css +0 -2
  173. package/template/stylelint.config.js +0 -3
  174. package/template/tailwind.config.js +0 -3
  175. package/template/tsconfig.app.json +0 -4
  176. package/template/tsconfig.build.json +0 -4
  177. package/template/vef.config.ts +0 -7
  178. package/tsconfig.build.json +0 -26
  179. package/types/cli.d.ts +0 -1
  180. package/types/commitlint-config.d.ts +0 -7
  181. package/types/config.d.ts +0 -38
  182. package/types/eslint-config.d.ts +0 -7
  183. package/types/index.d.ts +0 -5
  184. package/types/plugin-eslint.d.ts +0 -6
  185. package/types/plugin-icons.d.ts +0 -7
  186. package/types/plugin-initialization.d.ts +0 -7
  187. package/types/plugin-monaco-nls.d.ts +0 -15
  188. package/types/plugin-react-swc.d.ts +0 -6
  189. package/types/plugin-stylelint.d.ts +0 -6
  190. package/types/plugin-svgr.d.ts +0 -6
  191. package/types/plugin-tailwind.d.ts +0 -7
  192. package/types/plugin-tailwindcss.d.ts +0 -7
  193. package/types/plugin-visualizer.d.ts +0 -7
  194. package/types/plugin-webfont.d.ts +0 -6
  195. package/types/stylelint-config.d.ts +0 -7
  196. package/types/tailwind-config.d.ts +0 -7
  197. package/types/types.d.ts +0 -15
@@ -1,349 +0,0 @@
1
- var e=`{
2
- "base": "vs",
3
- "inherit": true,
4
- "rules": [
5
- {
6
- "background": "ffffff",
7
- "token": ""
8
- },
9
- {
10
- "foreground": "6a737d",
11
- "token": "comment"
12
- },
13
- {
14
- "foreground": "6a737d",
15
- "token": "punctuation.definition.comment"
16
- },
17
- {
18
- "foreground": "6a737d",
19
- "token": "string.comment"
20
- },
21
- {
22
- "foreground": "005cc5",
23
- "token": "constant"
24
- },
25
- {
26
- "foreground": "005cc5",
27
- "token": "entity.name.constant"
28
- },
29
- {
30
- "foreground": "005cc5",
31
- "token": "variable.other.constant"
32
- },
33
- {
34
- "foreground": "005cc5",
35
- "token": "variable.language"
36
- },
37
- {
38
- "foreground": "6f42c1",
39
- "token": "entity"
40
- },
41
- {
42
- "foreground": "6f42c1",
43
- "token": "entity.name"
44
- },
45
- {
46
- "foreground": "24292e",
47
- "token": "variable.parameter.function"
48
- },
49
- {
50
- "foreground": "22863a",
51
- "token": "entity.name.tag"
52
- },
53
- {
54
- "foreground": "d73a49",
55
- "token": "keyword"
56
- },
57
- {
58
- "foreground": "d73a49",
59
- "token": "storage"
60
- },
61
- {
62
- "foreground": "d73a49",
63
- "token": "storage.type"
64
- },
65
- {
66
- "foreground": "24292e",
67
- "token": "storage.modifier.package"
68
- },
69
- {
70
- "foreground": "24292e",
71
- "token": "storage.modifier.import"
72
- },
73
- {
74
- "foreground": "24292e",
75
- "token": "storage.type.java"
76
- },
77
- {
78
- "foreground": "032f62",
79
- "token": "string"
80
- },
81
- {
82
- "foreground": "032f62",
83
- "token": "punctuation.definition.string"
84
- },
85
- {
86
- "foreground": "032f62",
87
- "token": "string punctuation.section.embedded source"
88
- },
89
- {
90
- "foreground": "005cc5",
91
- "token": "support"
92
- },
93
- {
94
- "foreground": "005cc5",
95
- "token": "meta.property-name"
96
- },
97
- {
98
- "foreground": "e36209",
99
- "token": "variable"
100
- },
101
- {
102
- "foreground": "24292e",
103
- "token": "variable.other"
104
- },
105
- {
106
- "foreground": "b31d28",
107
- "fontStyle": "bold italic underline",
108
- "token": "invalid.broken"
109
- },
110
- {
111
- "foreground": "b31d28",
112
- "fontStyle": "bold italic underline",
113
- "token": "invalid.deprecated"
114
- },
115
- {
116
- "foreground": "fafbfc",
117
- "background": "b31d28",
118
- "fontStyle": "italic underline",
119
- "token": "invalid.illegal"
120
- },
121
- {
122
- "foreground": "fafbfc",
123
- "background": "d73a49",
124
- "fontStyle": "italic underline",
125
- "token": "carriage-return"
126
- },
127
- {
128
- "foreground": "b31d28",
129
- "fontStyle": "bold italic underline",
130
- "token": "invalid.unimplemented"
131
- },
132
- {
133
- "foreground": "b31d28",
134
- "token": "message.error"
135
- },
136
- {
137
- "foreground": "24292e",
138
- "token": "string source"
139
- },
140
- {
141
- "foreground": "005cc5",
142
- "token": "string variable"
143
- },
144
- {
145
- "foreground": "032f62",
146
- "token": "source.regexp"
147
- },
148
- {
149
- "foreground": "032f62",
150
- "token": "string.regexp"
151
- },
152
- {
153
- "foreground": "032f62",
154
- "token": "string.regexp.character-class"
155
- },
156
- {
157
- "foreground": "032f62",
158
- "token": "string.regexp constant.character.escape"
159
- },
160
- {
161
- "foreground": "032f62",
162
- "token": "string.regexp source.ruby.embedded"
163
- },
164
- {
165
- "foreground": "032f62",
166
- "token": "string.regexp string.regexp.arbitrary-repitition"
167
- },
168
- {
169
- "foreground": "22863a",
170
- "fontStyle": "bold",
171
- "token": "string.regexp constant.character.escape"
172
- },
173
- {
174
- "foreground": "005cc5",
175
- "token": "support.constant"
176
- },
177
- {
178
- "foreground": "005cc5",
179
- "token": "support.variable"
180
- },
181
- {
182
- "foreground": "005cc5",
183
- "token": "meta.module-reference"
184
- },
185
- {
186
- "foreground": "735c0f",
187
- "token": "markup.list"
188
- },
189
- {
190
- "foreground": "005cc5",
191
- "fontStyle": "bold",
192
- "token": "markup.heading"
193
- },
194
- {
195
- "foreground": "005cc5",
196
- "fontStyle": "bold",
197
- "token": "markup.heading entity.name"
198
- },
199
- {
200
- "foreground": "22863a",
201
- "token": "markup.quote"
202
- },
203
- {
204
- "foreground": "24292e",
205
- "fontStyle": "italic",
206
- "token": "markup.italic"
207
- },
208
- {
209
- "foreground": "24292e",
210
- "fontStyle": "bold",
211
- "token": "markup.bold"
212
- },
213
- {
214
- "foreground": "005cc5",
215
- "token": "markup.raw"
216
- },
217
- {
218
- "foreground": "b31d28",
219
- "background": "ffeef0",
220
- "token": "markup.deleted"
221
- },
222
- {
223
- "foreground": "b31d28",
224
- "background": "ffeef0",
225
- "token": "meta.diff.header.from-file"
226
- },
227
- {
228
- "foreground": "b31d28",
229
- "background": "ffeef0",
230
- "token": "punctuation.definition.deleted"
231
- },
232
- {
233
- "foreground": "22863a",
234
- "background": "f0fff4",
235
- "token": "markup.inserted"
236
- },
237
- {
238
- "foreground": "22863a",
239
- "background": "f0fff4",
240
- "token": "meta.diff.header.to-file"
241
- },
242
- {
243
- "foreground": "22863a",
244
- "background": "f0fff4",
245
- "token": "punctuation.definition.inserted"
246
- },
247
- {
248
- "foreground": "e36209",
249
- "background": "ffebda",
250
- "token": "markup.changed"
251
- },
252
- {
253
- "foreground": "e36209",
254
- "background": "ffebda",
255
- "token": "punctuation.definition.changed"
256
- },
257
- {
258
- "foreground": "f6f8fa",
259
- "background": "005cc5",
260
- "token": "markup.ignored"
261
- },
262
- {
263
- "foreground": "f6f8fa",
264
- "background": "005cc5",
265
- "token": "markup.untracked"
266
- },
267
- {
268
- "foreground": "6f42c1",
269
- "fontStyle": "bold",
270
- "token": "meta.diff.range"
271
- },
272
- {
273
- "foreground": "005cc5",
274
- "token": "meta.diff.header"
275
- },
276
- {
277
- "foreground": "005cc5",
278
- "fontStyle": "bold",
279
- "token": "meta.separator"
280
- },
281
- {
282
- "foreground": "005cc5",
283
- "token": "meta.output"
284
- },
285
- {
286
- "foreground": "586069",
287
- "token": "brackethighlighter.tag"
288
- },
289
- {
290
- "foreground": "586069",
291
- "token": "brackethighlighter.curly"
292
- },
293
- {
294
- "foreground": "586069",
295
- "token": "brackethighlighter.round"
296
- },
297
- {
298
- "foreground": "586069",
299
- "token": "brackethighlighter.square"
300
- },
301
- {
302
- "foreground": "586069",
303
- "token": "brackethighlighter.angle"
304
- },
305
- {
306
- "foreground": "586069",
307
- "token": "brackethighlighter.quote"
308
- },
309
- {
310
- "foreground": "b31d28",
311
- "token": "brackethighlighter.unmatched"
312
- },
313
- {
314
- "foreground": "b31d28",
315
- "token": "sublimelinter.mark.error"
316
- },
317
- {
318
- "foreground": "e36209",
319
- "token": "sublimelinter.mark.warning"
320
- },
321
- {
322
- "foreground": "959da5",
323
- "token": "sublimelinter.gutter-mark"
324
- },
325
- {
326
- "foreground": "032f62",
327
- "fontStyle": "underline",
328
- "token": "constant.other.reference.link"
329
- },
330
- {
331
- "foreground": "032f62",
332
- "fontStyle": "underline",
333
- "token": "string.other.link"
334
- }
335
- ],
336
- "colors": {
337
- "editor.foreground": "#24292e",
338
- "editor.background": "#fafafa",
339
- "editor.selectionBackground": "#c8c8fa",
340
- "editor.inactiveSelectionBackground": "#fafbfc",
341
- "editor.lineHighlightBackground": "#fafbfc",
342
- "editorCursor.foreground": "#24292e",
343
- "editorWhitespace.foreground": "#959da5",
344
- "editorIndentGuide.background": "#959da5",
345
- "editorIndentGuide.activeBackground": "#24292e",
346
- "editor.selectionHighlightBorder": "#fafbfc"
347
- }
348
- }
349
- `;export{e as default};
package/esm/modules.d.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- "use strict";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- import{snake as n}from"radashi";import p from"unplugin-config/vite";import{ENV_APP_PREFIX as r,DEFAULT_OUTPUT_DIR as o,DEFAULT_APP_NAME as a}from"./constants.js";function m(e){return n(e).toUpperCase()}function s({basePublicPath:e,outputDir:t,appName:i=a}){return p({appName:`VEF_${m(i)}`,baseDir:e,configFile:{generate:!0,fileName:"app.config.js",outputDir:t??o},htmlInjection:{enable:!0,position:"head-prepend",templates:["index.html"]},envVariables:{prefix:r,files:["env/.env","env/.env.production"]}})}export{s as createAppConfigPlugin};
@@ -1,12 +0,0 @@
1
- "use strict";
2
- import o from"node:process";import{DEFAULT_SERVER_PORT as u,ASSETS_DIR as e,DEFAULT_OUTPUT_DIR as f,DEFAULT_APP_NAME as l,ENV_BUILD_PREFIX as E,ENV_APP_PREFIX as n,ENV_DIR as v}from"./constants.js";function F({appName:i,appVersion:r,basePublicPath:t,projectDir:a,outputDir:s,serverPort:c,proxies:_}){return{name:"vef-framework:conventional-config",config(d,{command:m}){const p=m==="serve";return{appType:"spa",root:a,base:t,publicDir:"public",envDir:v,envPrefix:[E,n],define:{__VEF_FRAMEWORK_VERSION__:`"${o.env.VEF_FRAMEWORK_VERSION}"`,__VEF_APP_VERSION__:`"${r}"`,__VEF_APP_CONFIG__:p?`
3
- (function () {
4
- const env = import.meta.env;
5
- const config = Object.keys(env).filter(key => key.startsWith(${JSON.stringify(n)}))
6
- .reduce((acc, key) => {
7
- acc[key] = env[key];
8
- return acc;
9
- }, {});
10
- return Object.freeze(config);
11
- })()
12
- `:`window.__PRODUCTION__VEF_${i??l}__CONF__`},css:{modules:{scopeBehaviour:"local",localsConvention:"camelCase"}},optimizeDeps:{exclude:[],esbuildOptions:{plugins:[]}},esbuild:{drop:["console","debugger"],charset:"utf8",minifyIdentifiers:!0,minifySyntax:!1,minifyWhitespace:!0},build:{outDir:s??f,target:"modules",assetsDir:e,assetsInlineLimit:10240,reportCompressedSize:!1,chunkSizeWarningLimit:2048,minify:!0,sourcemap:!1,rollupOptions:{input:{main:"index.html"},output:{banner:`/*! Powered by VEF Framework v${o.env.VEF_FRAMEWORK_VERSION}.${r?` App version v${r}.`:""} Built at ${new Date().toISOString()} */`,chunkFileNames:`${e}/js/[name]-[hash].js`,entryFileNames:`${e}/js/[name]-[hash].js`,assetFileNames:`${e}/[ext]/[name]-[hash].[ext]`,manualChunks:{react:["react","react-dom"],"vef-framework":["@vef-framework/shared","@vef-framework/hooks","@vef-framework/core","@vef-framework/components","@vef-framework/starter"],"monaco-editor":["monaco-editor"]}}}},server:{port:c||u,host:!0,open:!0,proxy:_}}}}}export{F as createConventionalConfigPlugin};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- import e from"vite-plugin-eslint2";function t(){return e({fix:!0,test:!1,dev:!0,build:!1,cache:!0,cacheLocation:"node_modules/.cache/.eslintcache",include:["*.{js,ts,json,jsonc,yaml,toml,md}","src/**/*.{ts,tsx,json,jsonc,yaml,toml,md}"],exclude:["node_modules","virtual:","vef:"],emitError:!0,emitWarning:!0,emitWarningAsError:!0})}export{t as createEslintPlugin};
@@ -1,17 +0,0 @@
1
- "use strict";
2
- import{minify as s}from"html-minifier-terser";const r="index.html",o=`
3
- <!doctype html>
4
- <html lang="en">
5
- <head>
6
- <meta charset="UTF-8" />
7
- <link rel="icon" type="image/svg+xml" href="%VEF_APP_FAVICON%" />
8
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
9
- <meta name="description" content="Powered by VEF Framework" />
10
- <title>%VEF_APP_TITLE%</title>
11
- </head>
12
- <body>
13
- <div id="root"></div>
14
- <script type="module" src="src/main.ts"><\/script>
15
- </body>
16
- </html>
17
- `;function n(){return[{name:"vef-framework:html",resolveId(t){if(t===r)return r},load(t){if(t===r)return o},transformIndexHtml:{order:"pre",handler:()=>o}},{name:"vite-plugin-vef-framework-html-minify",enforce:"post",async generateBundle(t,i){for(const e of Object.values(i))e.type==="asset"&&typeof e.source=="string"&&e.fileName===r&&(e.source=await s(e.source,{collapseBooleanAttributes:!0,collapseInlineTagWhitespace:!0,collapseWhitespace:!0,conservativeCollapse:!1,keepClosingSlash:!0,minifyCSS:!0,minifyJS:!0,minifyURLs:!0,noNewlinesBeforeTagClose:!0,quoteCharacter:'"',removeAttributeQuotes:!1,removeComments:!0,removeEmptyAttributes:!0,removeOptionalTags:!1,removeRedundantAttributes:!0,removeScriptTypeAttributes:!1,removeTagWhitespace:!1,removeEmptyElements:!1,removeStyleLinkTypeAttributes:!1,sortAttributes:!0,sortClassName:!0,trimCustomFragments:!0,useShortDoctype:!0,html5:!0}))}}]}export{n as createHtmlPlugin};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- import{resolve as o,dirname as t}from"node:path";import{fileURLToPath as r}from"node:url";import l from"unplugin-icons/vite";function i(e){return l({autoInstall:!1,compiler:"jsx",jsx:"react",defaultClass:"inline-block",scale:1.2,collectionsNodeResolvePath:[e,o(t(r(import.meta.url)),"..")]})}export{i as createIconsPlugin};
@@ -1,135 +0,0 @@
1
- "use strict";
2
- import a from"./json/monaco.theme.github-light.json.js";const t="vef:initialization",n=`\0${t}`;function r(){return{name:"vef-framework:initialization",resolveId(e){if(e===t)return n},load(e){if(e===n)return`import { loader } from "@monaco-editor/react";
3
- import * as monaco from "monaco-editor";
4
- import EditorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker";
5
- import CssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker";
6
- import HtmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker";
7
- import JsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker";
8
- import TsWorker from "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
9
-
10
- // eslint-disable-next-line no-restricted-globals
11
- self.MonacoEnvironment = {
12
- getWorker(_, label) {
13
- if (label === "json") {
14
- return new JsonWorker();
15
- }
16
-
17
- if (label === "css" || label === "scss" || label === "less") {
18
- return new CssWorker();
19
- }
20
-
21
- if (label === "html" || label === "handlebars" || label === "razor") {
22
- return new HtmlWorker();
23
- }
24
-
25
- if (label === "typescript" || label === "javascript") {
26
- return new TsWorker();
27
- }
28
-
29
- return new EditorWorker();
30
- },
31
- };
32
-
33
- // Theme config
34
- monaco.editor.defineTheme("github-light", ${a});
35
-
36
- // Typescript config
37
- monaco.languages.typescript.typescriptDefaults.setInlayHintsOptions({
38
- includeInlayVariableTypeHints: true,
39
- includeInlayEnumMemberValueHints: true,
40
- includeInlayFunctionParameterTypeHints: true,
41
- includeInlayPropertyDeclarationTypeHints: true,
42
- includeInlayFunctionLikeReturnTypeHints: true,
43
- includeInlayParameterNameHints: "all",
44
- includeInlayParameterNameHintsWhenArgumentMatchesName: true,
45
- });
46
- monaco.languages.typescript.typescriptDefaults.setEagerModelSync(true);
47
- monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions({
48
- noSemanticValidation: false,
49
- noSuggestionDiagnostics: false,
50
- noSyntaxValidation: false,
51
- onlyVisible: false,
52
- });
53
- monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
54
- target: monaco.languages.typescript.ScriptTarget.ES2020,
55
- lib: ["ES2020"],
56
- module: monaco.languages.typescript.ModuleKind.ESNext,
57
- moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,
58
- jsx: monaco.languages.typescript.JsxEmit.React,
59
- strict: true,
60
- skipLibCheck: true,
61
- esModuleInterop: true,
62
- noEmit: true,
63
- baseUrl: ".",
64
- noFallthroughCasesInSwitch: true,
65
- allowSyntheticDefaultImports: true,
66
- });
67
-
68
- // Javascript config
69
- monaco.languages.typescript.javascriptDefaults.setModeConfiguration({
70
- inlayHints: true,
71
- codeActions: true,
72
- completionItems: true,
73
- definitions: true,
74
- diagnostics: true,
75
- documentHighlights: true,
76
- documentSymbols: true,
77
- hovers: true,
78
- references: true,
79
- onTypeFormattingEdits: true,
80
- rename: true,
81
- signatureHelp: true,
82
- documentRangeFormattingEdits: true,
83
- });
84
- monaco.languages.typescript.javascriptDefaults.setInlayHintsOptions({
85
- includeInlayVariableTypeHints: true,
86
- includeInlayEnumMemberValueHints: true,
87
- includeInlayFunctionParameterTypeHints: true,
88
- includeInlayPropertyDeclarationTypeHints: true,
89
- includeInlayFunctionLikeReturnTypeHints: true,
90
- includeInlayParameterNameHints: "all",
91
- includeInlayParameterNameHintsWhenArgumentMatchesName: true,
92
- });
93
- monaco.languages.typescript.javascriptDefaults.setEagerModelSync(true);
94
- monaco.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
95
- noSemanticValidation: false,
96
- noSuggestionDiagnostics: false,
97
- noSyntaxValidation: false,
98
- onlyVisible: false,
99
- });
100
- monaco.languages.typescript.javascriptDefaults.setCompilerOptions({
101
- target: monaco.languages.typescript.ScriptTarget.ES2020,
102
- lib: ["ES2020"],
103
- module: monaco.languages.typescript.ModuleKind.ESNext,
104
- moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,
105
- jsx: monaco.languages.typescript.JsxEmit.React,
106
- strict: true,
107
- skipLibCheck: true,
108
- esModuleInterop: true,
109
- noEmit: true,
110
- allowJs: true,
111
- baseUrl: ".",
112
- noFallthroughCasesInSwitch: true,
113
- allowSyntheticDefaultImports: true,
114
- });
115
-
116
- // Json config
117
- monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
118
- validate: true,
119
- });
120
-
121
- /**
122
- * Initialize the Intellisense Code Editor
123
- */
124
- export function initializeIntellisenseCodeEditor() {
125
- loader.config({
126
- "vs/nls": {
127
- availableLanguages: {
128
- "*": "zh-cn",
129
- },
130
- },
131
- monaco,
132
- });
133
- loader.init();
134
- }
135
- `}}}export{r as createInitializationPlugin};
@@ -1,3 +0,0 @@
1
- "use strict";
2
- import{basename as t,dirname as n}from"node:path";function i(){return{name:"vef-framework:injection",transform(e,r){return t(n(r))==="src"&&t(r).startsWith("main.ts")?`import "vef:tailwind.css";
3
- ${e}`:null}}}export{i as createInjectionPlugin};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- import e from"vite-plugin-inspect";function t(){return e({dev:!0,build:!1})}export{t as createInspectPlugin};
@@ -1,80 +0,0 @@
1
- "use strict";
2
- import{readFile as l}from"node:fs/promises";import g from"./json/monaco.nls.json.js";const s=/monaco-editor[/\\]esm[/\\]vs[/\\]nls\.js/,r=/monaco-editor[/\\]esm[/\\](?<path>.+)\.js/,u=/localize\(/g;function c(){return{name:"vef-framework:monaco-editor-nls",setup(e){e.onLoad({filter:s},()=>({contents:n(),loader:"js"})),e.onLoad({filter:r},async({path:a})=>({contents:o(a,await l(a.split("?")[0],"utf8")),loader:"js"}))}}}function f(){return{name:"vef-framework:monaco-editor-nls",enforce:"pre",load(e){if(s.test(e))return n()},transform(e,a){if(!s.test(a))return{code:o(a,e),map:null}}}}function o(e,a){const t=r.exec(e);if(t){const i=t.groups.path.replace(/\\/g,"/");return a.replace(u,`localize('${i}', `)}return a}function n(){return`/*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Microsoft Corporation. All rights reserved.
4
- * Licensed under the MIT License. See License.txt in the project root for license information.
5
- *--------------------------------------------------------------------------------------------*
6
- import { getNLSLanguage, getNLSMessages } from './nls.messages.js';
7
- export { getNLSLanguage, getNLSMessages } from './nls.messages.js';
8
- const isPseudo = getNLSLanguage() === 'pseudo' || (typeof document !== 'undefined' && document.location && document.location.hash.indexOf('pseudo=true') >= 0);
9
- const nlsData = ${g} || {};
10
- function _format(message, args) {
11
- let result;
12
- if (args.length === 0) {
13
- result = message;
14
- }
15
- else {
16
- result = message.replace(/\\{(\\d+)\\}/g, (match, rest) => {
17
- const index = rest[0];
18
- const arg = args[index];
19
- let result = match;
20
- if (typeof arg === 'string') {
21
- result = arg;
22
- }
23
- else if (typeof arg === 'number' || typeof arg === 'boolean' || arg === void 0 || arg === null) {
24
- result = String(arg);
25
- }
26
- return result;
27
- });
28
- }
29
- if (isPseudo) {
30
- // FF3B and FF3D is the Unicode zenkaku representation for [ and ]
31
- result = '\\uFF3B' + result.replace(/[aouei]/g, '$&$&') + '\\uFF3D';
32
- }
33
- return result;
34
- }
35
- /**
36
- * @skipMangle
37
- */
38
- export function localize(path, data, defaultMessage, ...args) {
39
- if (typeof data === 'number') {
40
- return _format(lookupMessage(data, message), args);
41
- }
42
- var key = typeof data === 'object' ? data.key : data;
43
- var message = (nlsData[path] || nlsData?.contents?.[path] || {})[key];
44
- if (!message) {
45
- message = defaultMessage;
46
- }
47
- return _format(message, args);
48
- }
49
- /**
50
- * Only used when built: Looks up the message in the global NLS table.
51
- * This table is being made available as a global through bootstrapping
52
- * depending on the target context.
53
- */
54
- function lookupMessage(index, fallback) {
55
- const message = getNLSMessages()?.[index];
56
- if (typeof message !== 'string') {
57
- if (typeof fallback === 'string') {
58
- return fallback;
59
- }
60
- throw new Error(\`!!! NLS MISSING: \${index} !!!\`);
61
- }
62
- return message;
63
- }
64
- /**
65
- * @skipMangle
66
- */
67
- export function localize2(data /* | number when built */, originalMessage, ...args) {
68
- let message;
69
- if (typeof data === 'number') {
70
- message = lookupMessage(data, originalMessage);
71
- }
72
- else {
73
- message = originalMessage;
74
- }
75
- const value = _format(message, args);
76
- return {
77
- value,
78
- original: originalMessage === message ? value : _format(originalMessage, args)
79
- };
80
- }`}export{c as createMonacoNlsEsbuildPlugin,f as createMonacoNlsRollupPlugin};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- import e from"@vitejs/plugin-react-swc";function t(){return e({devTarget:"esnext"})}export{t as createReactSwcPlugin};
@@ -1,11 +0,0 @@
1
- "use strict";
2
- import{TanStackRouterVite as i}from"@tanstack/router-plugin/vite";import{resolve as t}from"node:path";import{SRC_DIR as r,ROUTER_DIR as u,PAGES_DIR as a}from"./constants.js";function s(e,o="hash",n){return i({routesDirectory:t(e,r,a),generatedRouteTree:t(e,r,u,"router.gen.ts"),quoteStyle:"double",semicolons:!0,disableTypes:!1,addExtensions:!1,disableLogging:!1,disableManifestGeneration:!1,routeFileIgnorePattern:"components",indexToken:"index",routeToken:"route",enableRouteGeneration:!0,autoCodeSplitting:n,routeTreeFileHeader:["/* eslint-disable */","// @ts-nocheck","// noinspection JSUnusedGlobalSymbols",'import { createRouter } from "@vef-framework/starter";'],routeTreeFileFooter:[`const router = createRouter({
3
- routeTree,
4
- history: "${o}",
5
- });
6
- `,`declare module "@tanstack/react-router" {
7
- interface Register {
8
- router: typeof router;
9
- }
10
- }
11
- `,"export default router;"]})}export{s as createRouterPlugin};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- import e from"vite-plugin-stylelint";function t(){return e({fix:!0,test:!1,dev:!0,build:!1,cache:!0,cacheLocation:"node_modules/.cache/.stylelintcache",include:["src/**/*.{scss,css}"],exclude:["node_modules","virtual:","vef:"],emitError:!0,emitWarning:!0,emitWarningAsError:!0})}export{t as createStylelintPlugin};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- import s from"vite-plugin-svgr";function e(){return s({include:"**/*.svg?react",esbuildOptions:{platform:"browser",minify:!0,jsx:"automatic"},svgrOptions:{plugins:["@svgr/plugin-svgo","@svgr/plugin-jsx"],icon:!1,dimensions:!1,prettier:!0,memo:!0,svgo:!0,ref:!1,typescript:!0,jsxRuntime:"automatic",svgoConfig:{multipass:!0,datauri:"base64",js2svg:{indent:2,pretty:!0},plugins:["preset-default",{name:"prefixIds",params:{prefix:"vef"}},{name:"cleanupIds",params:{force:!0,remove:!0,minify:!0}}]},svgProps:{}}})}export{e as createSvgrPlugin};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- import i from"@tailwindcss/vite";function r(){return i()}export{r as createTailwindPlugin};
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const n="vef:tailwind.css",e=`\0${n}`;function t(){return{name:"vef-framework:tailwindcss",resolveId(i){if(i===n)return e},load(i){if(i===e)return`@import "tailwindcss";
3
- @config "./tailwind.config.js";`}}}export{t as createTailwindcssPlugin};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- import o from"vite-tsconfig-paths";function r(t){return o({root:t})}export{r as createTsconfigPathsPlugin};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- import{visualizer as t}from"rollup-plugin-visualizer";function e(i){return t({filename:"dist/stats.html",title:"Building Visualizer",projectRoot:i})}export{e as createVisualizerPlugin};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- import t from"vite-plugin-webfont-dl";function a(){return t(["https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap","https://fonts.googleapis.com/css2?family=Martian+Mono:wght@100..800&family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap"])}export{a as createWebfontPlugin};