@vef-framework/dev 1.0.128 → 1.0.130

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 (60) hide show
  1. package/cjs/cli.cjs +4 -227
  2. package/cjs/commitlint-config.cjs +1 -13
  3. package/cjs/config.cjs +1 -81
  4. package/cjs/constants.cjs +1 -26
  5. package/cjs/eslint-config.cjs +1 -412
  6. package/cjs/index.cjs +1 -15
  7. package/cjs/json/monaco.nls.json.cjs +15920 -7
  8. package/cjs/json/monaco.theme.github-light.json.cjs +349 -7
  9. package/cjs/modules.d.cjs +0 -2
  10. package/cjs/plugin-app-config.cjs +1 -36
  11. package/cjs/plugin-conventional-config.cjs +3 -107
  12. package/cjs/plugin-eslint.cjs +1 -22
  13. package/cjs/plugin-html.cjs +2 -70
  14. package/cjs/plugin-icons.cjs +1 -20
  15. package/cjs/plugin-initialization.cjs +3 -26
  16. package/cjs/plugin-injection.cjs +2 -19
  17. package/cjs/plugin-inspect.cjs +1 -13
  18. package/cjs/plugin-monaco-nls.cjs +3 -59
  19. package/cjs/plugin-react-swc.cjs +1 -12
  20. package/cjs/plugin-router.cjs +4 -40
  21. package/cjs/plugin-stylelint.cjs +1 -22
  22. package/cjs/plugin-svgr.cjs +1 -57
  23. package/cjs/plugin-tailwind.cjs +1 -10
  24. package/cjs/plugin-tailwindcss.cjs +2 -23
  25. package/cjs/plugin-tsconfig-paths.cjs +1 -12
  26. package/cjs/plugin-visualizer.cjs +1 -14
  27. package/cjs/plugin-webfont.cjs +1 -13
  28. package/cjs/stylelint-config.cjs +1 -66
  29. package/cjs/tailwind-config.cjs +1 -394
  30. package/cjs/types.cjs +0 -2
  31. package/esm/cli.js +4 -225
  32. package/esm/commitlint-config.js +1 -11
  33. package/esm/config.js +1 -79
  34. package/esm/constants.js +1 -14
  35. package/esm/eslint-config.js +1 -410
  36. package/esm/index.js +1 -7
  37. package/esm/json/monaco.nls.json.js +15920 -3
  38. package/esm/json/monaco.theme.github-light.json.js +349 -3
  39. package/esm/plugin-app-config.js +1 -34
  40. package/esm/plugin-conventional-config.js +3 -105
  41. package/esm/plugin-eslint.js +1 -20
  42. package/esm/plugin-html.js +2 -68
  43. package/esm/plugin-icons.js +1 -17
  44. package/esm/plugin-initialization.js +3 -24
  45. package/esm/plugin-injection.js +2 -17
  46. package/esm/plugin-inspect.js +1 -11
  47. package/esm/plugin-monaco-nls.js +3 -56
  48. package/esm/plugin-react-swc.js +1 -10
  49. package/esm/plugin-router.js +4 -38
  50. package/esm/plugin-stylelint.js +1 -20
  51. package/esm/plugin-svgr.js +1 -55
  52. package/esm/plugin-tailwind.js +1 -8
  53. package/esm/plugin-tailwindcss.js +2 -21
  54. package/esm/plugin-tsconfig-paths.js +1 -10
  55. package/esm/plugin-visualizer.js +1 -12
  56. package/esm/plugin-webfont.js +1 -11
  57. package/esm/stylelint-config.js +1 -64
  58. package/esm/tailwind-config.js +1 -392
  59. package/package.json +1 -1
  60. package/template/_package.json +5 -5
@@ -1,3 +1,349 @@
1
- var monaco_theme_github_light_default = '{\n "base": "vs",\n "inherit": true,\n "rules": [\n {\n "background": "ffffff",\n "token": ""\n },\n {\n "foreground": "6a737d",\n "token": "comment"\n },\n {\n "foreground": "6a737d",\n "token": "punctuation.definition.comment"\n },\n {\n "foreground": "6a737d",\n "token": "string.comment"\n },\n {\n "foreground": "005cc5",\n "token": "constant"\n },\n {\n "foreground": "005cc5",\n "token": "entity.name.constant"\n },\n {\n "foreground": "005cc5",\n "token": "variable.other.constant"\n },\n {\n "foreground": "005cc5",\n "token": "variable.language"\n },\n {\n "foreground": "6f42c1",\n "token": "entity"\n },\n {\n "foreground": "6f42c1",\n "token": "entity.name"\n },\n {\n "foreground": "24292e",\n "token": "variable.parameter.function"\n },\n {\n "foreground": "22863a",\n "token": "entity.name.tag"\n },\n {\n "foreground": "d73a49",\n "token": "keyword"\n },\n {\n "foreground": "d73a49",\n "token": "storage"\n },\n {\n "foreground": "d73a49",\n "token": "storage.type"\n },\n {\n "foreground": "24292e",\n "token": "storage.modifier.package"\n },\n {\n "foreground": "24292e",\n "token": "storage.modifier.import"\n },\n {\n "foreground": "24292e",\n "token": "storage.type.java"\n },\n {\n "foreground": "032f62",\n "token": "string"\n },\n {\n "foreground": "032f62",\n "token": "punctuation.definition.string"\n },\n {\n "foreground": "032f62",\n "token": "string punctuation.section.embedded source"\n },\n {\n "foreground": "005cc5",\n "token": "support"\n },\n {\n "foreground": "005cc5",\n "token": "meta.property-name"\n },\n {\n "foreground": "e36209",\n "token": "variable"\n },\n {\n "foreground": "24292e",\n "token": "variable.other"\n },\n {\n "foreground": "b31d28",\n "fontStyle": "bold italic underline",\n "token": "invalid.broken"\n },\n {\n "foreground": "b31d28",\n "fontStyle": "bold italic underline",\n "token": "invalid.deprecated"\n },\n {\n "foreground": "fafbfc",\n "background": "b31d28",\n "fontStyle": "italic underline",\n "token": "invalid.illegal"\n },\n {\n "foreground": "fafbfc",\n "background": "d73a49",\n "fontStyle": "italic underline",\n "token": "carriage-return"\n },\n {\n "foreground": "b31d28",\n "fontStyle": "bold italic underline",\n "token": "invalid.unimplemented"\n },\n {\n "foreground": "b31d28",\n "token": "message.error"\n },\n {\n "foreground": "24292e",\n "token": "string source"\n },\n {\n "foreground": "005cc5",\n "token": "string variable"\n },\n {\n "foreground": "032f62",\n "token": "source.regexp"\n },\n {\n "foreground": "032f62",\n "token": "string.regexp"\n },\n {\n "foreground": "032f62",\n "token": "string.regexp.character-class"\n },\n {\n "foreground": "032f62",\n "token": "string.regexp constant.character.escape"\n },\n {\n "foreground": "032f62",\n "token": "string.regexp source.ruby.embedded"\n },\n {\n "foreground": "032f62",\n "token": "string.regexp string.regexp.arbitrary-repitition"\n },\n {\n "foreground": "22863a",\n "fontStyle": "bold",\n "token": "string.regexp constant.character.escape"\n },\n {\n "foreground": "005cc5",\n "token": "support.constant"\n },\n {\n "foreground": "005cc5",\n "token": "support.variable"\n },\n {\n "foreground": "005cc5",\n "token": "meta.module-reference"\n },\n {\n "foreground": "735c0f",\n "token": "markup.list"\n },\n {\n "foreground": "005cc5",\n "fontStyle": "bold",\n "token": "markup.heading"\n },\n {\n "foreground": "005cc5",\n "fontStyle": "bold",\n "token": "markup.heading entity.name"\n },\n {\n "foreground": "22863a",\n "token": "markup.quote"\n },\n {\n "foreground": "24292e",\n "fontStyle": "italic",\n "token": "markup.italic"\n },\n {\n "foreground": "24292e",\n "fontStyle": "bold",\n "token": "markup.bold"\n },\n {\n "foreground": "005cc5",\n "token": "markup.raw"\n },\n {\n "foreground": "b31d28",\n "background": "ffeef0",\n "token": "markup.deleted"\n },\n {\n "foreground": "b31d28",\n "background": "ffeef0",\n "token": "meta.diff.header.from-file"\n },\n {\n "foreground": "b31d28",\n "background": "ffeef0",\n "token": "punctuation.definition.deleted"\n },\n {\n "foreground": "22863a",\n "background": "f0fff4",\n "token": "markup.inserted"\n },\n {\n "foreground": "22863a",\n "background": "f0fff4",\n "token": "meta.diff.header.to-file"\n },\n {\n "foreground": "22863a",\n "background": "f0fff4",\n "token": "punctuation.definition.inserted"\n },\n {\n "foreground": "e36209",\n "background": "ffebda",\n "token": "markup.changed"\n },\n {\n "foreground": "e36209",\n "background": "ffebda",\n "token": "punctuation.definition.changed"\n },\n {\n "foreground": "f6f8fa",\n "background": "005cc5",\n "token": "markup.ignored"\n },\n {\n "foreground": "f6f8fa",\n "background": "005cc5",\n "token": "markup.untracked"\n },\n {\n "foreground": "6f42c1",\n "fontStyle": "bold",\n "token": "meta.diff.range"\n },\n {\n "foreground": "005cc5",\n "token": "meta.diff.header"\n },\n {\n "foreground": "005cc5",\n "fontStyle": "bold",\n "token": "meta.separator"\n },\n {\n "foreground": "005cc5",\n "token": "meta.output"\n },\n {\n "foreground": "586069",\n "token": "brackethighlighter.tag"\n },\n {\n "foreground": "586069",\n "token": "brackethighlighter.curly"\n },\n {\n "foreground": "586069",\n "token": "brackethighlighter.round"\n },\n {\n "foreground": "586069",\n "token": "brackethighlighter.square"\n },\n {\n "foreground": "586069",\n "token": "brackethighlighter.angle"\n },\n {\n "foreground": "586069",\n "token": "brackethighlighter.quote"\n },\n {\n "foreground": "b31d28",\n "token": "brackethighlighter.unmatched"\n },\n {\n "foreground": "b31d28",\n "token": "sublimelinter.mark.error"\n },\n {\n "foreground": "e36209",\n "token": "sublimelinter.mark.warning"\n },\n {\n "foreground": "959da5",\n "token": "sublimelinter.gutter-mark"\n },\n {\n "foreground": "032f62",\n "fontStyle": "underline",\n "token": "constant.other.reference.link"\n },\n {\n "foreground": "032f62",\n "fontStyle": "underline",\n "token": "string.other.link"\n }\n ],\n "colors": {\n "editor.foreground": "#24292e",\n "editor.background": "#fafafa",\n "editor.selectionBackground": "#c8c8fa",\n "editor.inactiveSelectionBackground": "#fafbfc",\n "editor.lineHighlightBackground": "#fafbfc",\n "editorCursor.foreground": "#24292e",\n "editorWhitespace.foreground": "#959da5",\n "editorIndentGuide.background": "#959da5",\n "editorIndentGuide.activeBackground": "#24292e",\n "editor.selectionHighlightBorder": "#fafbfc"\n }\n}\n';
2
-
3
- export { monaco_theme_github_light_default as default };
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};
@@ -1,35 +1,2 @@
1
1
  "use strict";
2
- import { snake } from 'radashi';
3
- import config from 'unplugin-config/vite';
4
- import { ENV_APP_PREFIX, DEFAULT_OUTPUT_DIR, DEFAULT_APP_NAME } from './constants.js';
5
-
6
- "use strict";
7
- function constantCase(value) {
8
- return snake(value).toUpperCase();
9
- }
10
- function createAppConfigPlugin({
11
- basePublicPath,
12
- outputDir,
13
- appName = DEFAULT_APP_NAME
14
- }) {
15
- return config({
16
- appName: `VEF_${constantCase(appName)}`,
17
- baseDir: basePublicPath,
18
- configFile: {
19
- generate: true,
20
- fileName: "app.config.js",
21
- outputDir: outputDir ?? DEFAULT_OUTPUT_DIR
22
- },
23
- htmlInjection: {
24
- enable: true,
25
- position: "head-prepend",
26
- templates: ["index.html"]
27
- },
28
- envVariables: {
29
- prefix: ENV_APP_PREFIX,
30
- files: ["env/.env", "env/.env.production"]
31
- }
32
- });
33
- }
34
-
35
- export { createAppConfigPlugin };
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,114 +1,12 @@
1
1
  "use strict";
2
- import process from 'node:process';
3
- import { DEFAULT_SERVER_PORT, ASSETS_DIR, DEFAULT_OUTPUT_DIR, DEFAULT_APP_NAME, ENV_BUILD_PREFIX, ENV_APP_PREFIX, ENV_DIR } from './constants.js';
4
-
5
- "use strict";
6
- function createConventionalConfigPlugin({
7
- appName,
8
- appVersion,
9
- basePublicPath,
10
- projectDir,
11
- outputDir,
12
- serverPort,
13
- proxies
14
- }) {
15
- return {
16
- name: "vef-framework:conventional-config",
17
- config(_, { command }) {
18
- const isDev = command === "serve";
19
- return {
20
- appType: "spa",
21
- root: projectDir,
22
- base: basePublicPath,
23
- publicDir: "public",
24
- envDir: ENV_DIR,
25
- envPrefix: [ENV_BUILD_PREFIX, ENV_APP_PREFIX],
26
- define: {
27
- __VEF_FRAMEWORK_VERSION__: `"${process.env.VEF_FRAMEWORK_VERSION}"`,
28
- __VEF_APP_VERSION__: `"${appVersion}"`,
29
- __VEF_APP_CONFIG__: isDev ? `
2
+ import o from"node:process";import{DEFAULT_SERVER_PORT as f,ASSETS_DIR as e,DEFAULT_OUTPUT_DIR as u,DEFAULT_APP_NAME as l,ENV_BUILD_PREFIX as v,ENV_APP_PREFIX as n,ENV_DIR as E}from"./constants.js";function d({appName:t,appVersion:r,basePublicPath:i,projectDir:s,outputDir:a,serverPort:c,proxies:m}){return{name:"vef-framework:conventional-config",config(F,{command:_}){const p=_==="serve";return{appType:"spa",root:s,base:i,publicDir:"public",envDir:E,envPrefix:[v,n],define:{__VEF_FRAMEWORK_VERSION__:`"${o.env.VEF_FRAMEWORK_VERSION}"`,__VEF_APP_VERSION__:`"${r}"`,__VEF_APP_CONFIG__:p?`
30
3
  (function () {
31
4
  const env = import.meta.env;
32
- const config = Object.keys(env).filter(key => key.startsWith(${JSON.stringify(ENV_APP_PREFIX)}))
5
+ const config = Object.keys(env).filter(key => key.startsWith(${JSON.stringify(n)}))
33
6
  .reduce((acc, key) => {
34
7
  acc[key] = env[key];
35
8
  return acc;
36
9
  }, {});
37
10
  return Object.freeze(config);
38
11
  })()
39
- ` : `window.__PRODUCTION__VEF_${appName ?? DEFAULT_APP_NAME}__CONF__`
40
- },
41
- css: {
42
- modules: {
43
- scopeBehaviour: "local",
44
- localsConvention: "camelCase"
45
- }
46
- },
47
- optimizeDeps: {
48
- exclude: [],
49
- esbuildOptions: {
50
- plugins: []
51
- }
52
- },
53
- esbuild: {
54
- drop: ["console", "debugger"],
55
- charset: "utf8",
56
- minifyIdentifiers: true,
57
- minifySyntax: false,
58
- minifyWhitespace: true
59
- },
60
- build: {
61
- outDir: outputDir ?? DEFAULT_OUTPUT_DIR,
62
- target: "modules",
63
- assetsDir: ASSETS_DIR,
64
- assetsInlineLimit: 10240,
65
- reportCompressedSize: false,
66
- chunkSizeWarningLimit: 2048,
67
- minify: true,
68
- sourcemap: false,
69
- rollupOptions: {
70
- input: {
71
- main: "index.html"
72
- },
73
- output: {
74
- banner: `/*! Powered by VEF Framework v${process.env.VEF_FRAMEWORK_VERSION}.${appVersion ? ` App version v${appVersion}.` : ""} Built at ${(/* @__PURE__ */ new Date()).toISOString()} */`,
75
- chunkFileNames: `${ASSETS_DIR}/js/[name]-[hash].js`,
76
- entryFileNames: `${ASSETS_DIR}/js/[name]-[hash].js`,
77
- assetFileNames: `${ASSETS_DIR}/[ext]/[name]-[hash].[ext]`,
78
- manualChunks: {
79
- "react": ["react", "react-dom"],
80
- "vef-shared": ["@vef-framework/shared"],
81
- "vef-components": ["@vef-framework/components"],
82
- "vef-hooks": ["@vef-framework/hooks"],
83
- "vef-core": ["@vef-framework/core"],
84
- "vef-starter": ["@vef-framework/starter"],
85
- "vef-intellisense-code-editor": ["monaco-editor", "@monaco-editor/react"],
86
- "vef-code-editor": [
87
- "@uiw/react-codemirror",
88
- "@uiw/codemirror-extensions-langs",
89
- "@uiw/codemirror-theme-material",
90
- "codemirror-json-schema",
91
- "codemirror-json5",
92
- "@codemirror/state",
93
- "@codemirror/view",
94
- "@codemirror/lint",
95
- "@codemirror/language",
96
- "@codemirror/lang-yaml",
97
- "@codemirror/lang-json"
98
- ]
99
- }
100
- }
101
- }
102
- },
103
- server: {
104
- port: serverPort || DEFAULT_SERVER_PORT,
105
- host: true,
106
- open: true,
107
- proxy: proxies
108
- }
109
- };
110
- }
111
- };
112
- }
113
-
114
- export { createConventionalConfigPlugin };
12
+ `:`window.__PRODUCTION__VEF_${t??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:a??u,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-shared":["@vef-framework/shared"],"vef-components":["@vef-framework/components"],"vef-hooks":["@vef-framework/hooks"],"vef-core":["@vef-framework/core"],"vef-starter":["@vef-framework/starter"],"monaco-editor":["monaco-editor"]}}}},server:{port:c||f,host:!0,open:!0,proxy:m}}}}}export{d as createConventionalConfigPlugin};
@@ -1,21 +1,2 @@
1
1
  "use strict";
2
- import eslint from 'vite-plugin-eslint2';
3
-
4
- "use strict";
5
- function createEslintPlugin() {
6
- return eslint({
7
- fix: true,
8
- test: false,
9
- dev: true,
10
- build: false,
11
- cache: true,
12
- cacheLocation: "node_modules/.cache/.eslintcache",
13
- include: ["*.{js,ts,json,jsonc,yaml,toml,md}", "src/**/*.{ts,tsx,json,jsonc,yaml,toml,md}"],
14
- exclude: ["node_modules", "virtual:", "vef:"],
15
- emitError: true,
16
- emitWarning: true,
17
- emitWarningAsError: true
18
- });
19
- }
20
-
21
- export { createEslintPlugin };
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,9 +1,5 @@
1
1
  "use strict";
2
- import { minify } from 'html-minifier-terser';
3
-
4
- "use strict";
5
- const virtualModuleId = "index.html";
6
- const htmlContent = `
2
+ import{minify as s}from"html-minifier-terser";const r="index.html",o=`
7
3
  <!doctype html>
8
4
  <html lang="en">
9
5
  <head>
@@ -18,66 +14,4 @@ const htmlContent = `
18
14
  <script type="module" src="src/main.ts"><\/script>
19
15
  </body>
20
16
  </html>
21
- `;
22
- function createHtmlPlugin() {
23
- return [
24
- {
25
- name: "vef-framework:html",
26
- resolveId(source) {
27
- if (source === virtualModuleId) {
28
- return virtualModuleId;
29
- }
30
- },
31
- load(id) {
32
- if (id === virtualModuleId) {
33
- return htmlContent;
34
- }
35
- },
36
- transformIndexHtml: {
37
- order: "pre",
38
- handler: () => htmlContent
39
- }
40
- },
41
- {
42
- name: "vite-plugin-vef-framework-html-minify",
43
- enforce: "post",
44
- async generateBundle(_, bundles) {
45
- for (const bundle of Object.values(bundles)) {
46
- if (bundle.type === "asset" && typeof bundle.source === "string" && bundle.fileName === virtualModuleId) {
47
- bundle.source = await minify(
48
- bundle.source,
49
- {
50
- collapseBooleanAttributes: true,
51
- collapseInlineTagWhitespace: true,
52
- collapseWhitespace: true,
53
- conservativeCollapse: false,
54
- keepClosingSlash: true,
55
- minifyCSS: true,
56
- minifyJS: true,
57
- minifyURLs: true,
58
- noNewlinesBeforeTagClose: true,
59
- quoteCharacter: `"`,
60
- removeAttributeQuotes: false,
61
- removeComments: true,
62
- removeEmptyAttributes: true,
63
- removeOptionalTags: false,
64
- removeRedundantAttributes: true,
65
- removeScriptTypeAttributes: false,
66
- removeTagWhitespace: false,
67
- removeEmptyElements: false,
68
- removeStyleLinkTypeAttributes: false,
69
- sortAttributes: true,
70
- sortClassName: true,
71
- trimCustomFragments: true,
72
- useShortDoctype: true,
73
- html5: true
74
- }
75
- );
76
- }
77
- }
78
- }
79
- }
80
- ];
81
- }
82
-
83
- export { createHtmlPlugin };
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,18 +1,2 @@
1
1
  "use strict";
2
- import { resolve, dirname } from 'node:path';
3
- import { fileURLToPath } from 'node:url';
4
- import icons from 'unplugin-icons/vite';
5
-
6
- "use strict";
7
- function createIconsPlugin(projectDir) {
8
- return icons({
9
- autoInstall: false,
10
- compiler: "jsx",
11
- jsx: "react",
12
- defaultClass: "inline-block",
13
- scale: 1.2,
14
- collectionsNodeResolvePath: [projectDir, resolve(dirname(fileURLToPath(import.meta.url)), "..")]
15
- });
16
- }
17
-
18
- export { createIconsPlugin };
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};