@vef-framework/dev 1.0.101 → 1.0.102

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 (53) hide show
  1. package/es/cli.js +4 -226
  2. package/es/commitlint-config.js +1 -12
  3. package/es/config.js +1 -78
  4. package/es/constants.js +1 -15
  5. package/es/eslint-config.js +1 -411
  6. package/es/index.js +1 -7
  7. package/es/modules.d.js +1 -3
  8. package/es/plugin-app-config.js +1 -35
  9. package/es/plugin-conventional-config.js +2 -87
  10. package/es/plugin-eslint.js +1 -21
  11. package/es/plugin-html.js +2 -69
  12. package/es/plugin-icons.js +1 -18
  13. package/es/plugin-injection.js +2 -18
  14. package/es/plugin-inspect.js +1 -12
  15. package/es/plugin-react-swc.js +1 -11
  16. package/es/plugin-router.js +3 -38
  17. package/es/plugin-stylelint.js +1 -21
  18. package/es/plugin-svgr.js +1 -56
  19. package/es/plugin-tailwind.js +1 -9
  20. package/es/plugin-tailwindcss.js +2 -22
  21. package/es/plugin-tsconfig-paths.js +1 -11
  22. package/es/plugin-visualizer.js +1 -13
  23. package/es/plugin-webfont.js +1 -12
  24. package/es/stylelint-config.js +1 -65
  25. package/es/tailwind-config.js +1 -393
  26. package/lib/cli.cjs +4 -228
  27. package/lib/commitlint-config.cjs +1 -16
  28. package/lib/config.cjs +1 -82
  29. package/lib/constants.cjs +1 -29
  30. package/lib/eslint-config.cjs +1 -415
  31. package/lib/index.cjs +1 -19
  32. package/lib/modules.d.cjs +1 -5
  33. package/lib/plugin-app-config.cjs +1 -39
  34. package/lib/plugin-conventional-config.cjs +2 -91
  35. package/lib/plugin-eslint.cjs +1 -25
  36. package/lib/plugin-html.cjs +2 -73
  37. package/lib/plugin-icons.cjs +1 -23
  38. package/lib/plugin-injection.cjs +2 -22
  39. package/lib/plugin-inspect.cjs +1 -16
  40. package/lib/plugin-react-swc.cjs +1 -15
  41. package/lib/plugin-router.cjs +3 -42
  42. package/lib/plugin-stylelint.cjs +1 -25
  43. package/lib/plugin-svgr.cjs +1 -60
  44. package/lib/plugin-tailwind.cjs +1 -13
  45. package/lib/plugin-tailwindcss.cjs +2 -26
  46. package/lib/plugin-tsconfig-paths.cjs +1 -15
  47. package/lib/plugin-visualizer.cjs +1 -17
  48. package/lib/plugin-webfont.cjs +1 -16
  49. package/lib/stylelint-config.cjs +1 -69
  50. package/lib/tailwind-config.cjs +1 -397
  51. package/lib/types.cjs +1 -5
  52. package/package.json +1 -1
  53. package/template/_package.json +5 -5
@@ -1,415 +1 @@
1
- /*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- const eslintConfig = require('@antfu/eslint-config');
7
- const pluginRouter = require('@tanstack/eslint-plugin-router');
8
-
9
- function defineEslintConfig() {
10
- return eslintConfig.antfu(
11
- {
12
- ignores: [
13
- "**/node_modules",
14
- "**/dist",
15
- "**/public"
16
- ],
17
- stylistic: {
18
- indent: 2,
19
- jsx: true,
20
- quotes: "double",
21
- semi: true,
22
- overrides: {
23
- "style/line-comment-position": [
24
- "error",
25
- {
26
- position: "above"
27
- }
28
- ],
29
- "style/jsx-self-closing-comp": [
30
- "error",
31
- {
32
- component: true,
33
- html: true
34
- }
35
- ],
36
- "style/jsx-newline": [
37
- "error",
38
- {
39
- prevent: true,
40
- allowMultilines: true
41
- }
42
- ],
43
- "style/jsx-props-no-multi-spaces": "error",
44
- "style/jsx-sort-props": [
45
- "error",
46
- {
47
- callbacksLast: true,
48
- shorthandFirst: true,
49
- shorthandLast: false,
50
- multiline: "last",
51
- ignoreCase: true,
52
- noSortAlphabetically: false,
53
- reservedFirst: ["key", "ref"]
54
- }
55
- ],
56
- "style/newline-per-chained-call": [
57
- "error",
58
- {
59
- ignoreChainWithDepth: 3
60
- }
61
- ],
62
- "style/object-property-newline": "error",
63
- "style/brace-style": [
64
- "error",
65
- "1tbs"
66
- ],
67
- "style/arrow-parens": [
68
- "error",
69
- "as-needed"
70
- ],
71
- "style/multiline-comment-style": [
72
- "error",
73
- "separate-lines",
74
- {
75
- checkJSDoc: false
76
- }
77
- ],
78
- "style/implicit-arrow-linebreak": [
79
- "error",
80
- "beside"
81
- ],
82
- "style/no-extra-semi": "error",
83
- "style/array-element-newline": [
84
- "error",
85
- {
86
- consistent: true,
87
- multiline: true,
88
- minItems: 7
89
- }
90
- ],
91
- "style/function-call-argument-newline": [
92
- "error",
93
- "consistent"
94
- ],
95
- "style/padding-line-between-statements": [
96
- "error",
97
- {
98
- blankLine: "always",
99
- prev: "*",
100
- next: [
101
- "block",
102
- "multiline-block-like",
103
- "type",
104
- "interface",
105
- "enum",
106
- "function",
107
- "function-overload"
108
- ]
109
- },
110
- {
111
- blankLine: "always",
112
- prev: [
113
- "block",
114
- "multiline-block-like",
115
- "type",
116
- "interface",
117
- "enum",
118
- "function",
119
- "function-overload"
120
- ],
121
- next: "*"
122
- }
123
- ],
124
- "style/jsx-pascal-case": [
125
- "error",
126
- {
127
- allowAllCaps: false,
128
- allowLeadingUnderscore: false,
129
- allowNamespace: false,
130
- ignore: []
131
- }
132
- ],
133
- "style/switch-colon-spacing": [
134
- "error",
135
- {
136
- before: false,
137
- after: true
138
- }
139
- ],
140
- "style/object-curly-newline": [
141
- "error",
142
- {
143
- ObjectExpression: {
144
- multiline: true,
145
- consistent: true,
146
- minProperties: 3
147
- },
148
- ObjectPattern: {
149
- multiline: true,
150
- consistent: true,
151
- minProperties: 3
152
- },
153
- ImportDeclaration: {
154
- consistent: true,
155
- multiline: true
156
- },
157
- ExportDeclaration: {
158
- consistent: true,
159
- multiline: true
160
- }
161
- }
162
- ],
163
- "style/no-extra-parens": [
164
- "error",
165
- "all",
166
- {
167
- nestedBinaryExpressions: false,
168
- ternaryOperandBinaryExpressions: false,
169
- ignoreJSX: "multi-line"
170
- }
171
- ]
172
- }
173
- },
174
- javascript: {
175
- overrides: {
176
- "no-duplicate-imports": "off",
177
- "prefer-object-spread": "error",
178
- "func-style": [
179
- "error",
180
- "declaration",
181
- {
182
- allowArrowFunctions: true
183
- }
184
- ],
185
- "curly": [
186
- "error",
187
- "all"
188
- ],
189
- "no-useless-escape": "error",
190
- "no-useless-concat": "error",
191
- "no-unused-private-class-members": "error",
192
- "no-unsafe-optional-chaining": "error",
193
- "no-dupe-else-if": "error",
194
- "no-eq-null": "error",
195
- "no-extra-label": "error",
196
- "no-negated-condition": "error",
197
- "no-invalid-this": "error",
198
- "arrow-body-style": [
199
- "error",
200
- "as-needed"
201
- ],
202
- "prefer-object-has-own": "error",
203
- "prefer-numeric-literals": "error",
204
- "prefer-named-capture-group": "error",
205
- "prefer-destructuring": "error",
206
- "object-shorthand": "error",
207
- "require-atomic-updates": "error",
208
- "require-await": "error",
209
- "camelcase": [
210
- "error",
211
- {
212
- properties: "always",
213
- ignoreGlobals: true
214
- }
215
- ],
216
- "no-promise-executor-return": [
217
- "error",
218
- {
219
- allowVoid: true
220
- }
221
- ],
222
- "sort-imports": "off",
223
- "no-console": "off"
224
- }
225
- },
226
- typescript: {
227
- overrides: {
228
- "ts/no-unused-expressions": [
229
- "error",
230
- {
231
- enforceForJSX: true
232
- }
233
- ],
234
- "ts/no-unused-vars": [
235
- "error",
236
- {
237
- args: "after-used",
238
- caughtErrors: "all",
239
- destructuredArrayIgnorePattern: "^_",
240
- ignoreRestSiblings: true
241
- }
242
- ],
243
- "ts/array-type": [
244
- "error",
245
- {
246
- default: "array-simple",
247
- readonly: "array-simple"
248
- }
249
- ],
250
- "ts/consistent-type-assertions": [
251
- "error",
252
- {
253
- assertionStyle: "as",
254
- objectLiteralTypeAssertions: "allow"
255
- }
256
- ],
257
- "ts/consistent-type-definitions": [
258
- "error",
259
- "interface"
260
- ],
261
- "ts/max-params": [
262
- "error",
263
- {
264
- max: 5
265
- }
266
- ]
267
- }
268
- },
269
- react: {
270
- overrides: {
271
- "react-naming-convention/component-name": ["error", "PascalCase"],
272
- "react-naming-convention/filename-extension": [
273
- "error",
274
- {
275
- allow: "as-needed",
276
- extensions: [".tsx"]
277
- }
278
- ],
279
- "react-hooks-extra/no-redundant-custom-hook": "error",
280
- "react-hooks-extra/no-unnecessary-use-memo": "error",
281
- "react-hooks-extra/no-unnecessary-use-callback": "error",
282
- "react-naming-convention/use-state": "error",
283
- "react-refresh/only-export-components": "error",
284
- "react-hooks/exhaustive-deps": [
285
- "error",
286
- {
287
- additionalHooks: "^use(Deep|Shallow)"
288
- }
289
- ],
290
- "react/no-clone-element": "off",
291
- "react/no-class-component": "error",
292
- "react/no-children-prop": "off",
293
- "react/no-children-to-array": "off",
294
- "react/no-children-for-each": "off",
295
- "react/no-children-count": "off"
296
- }
297
- },
298
- vue: false,
299
- jsx: true,
300
- regexp: true,
301
- jsonc: true,
302
- yaml: true,
303
- toml: true,
304
- markdown: {
305
- overrides: {
306
- "markdown/fenced-code-language": "error",
307
- "markdown/no-duplicate-headings": "error",
308
- "markdown/no-empty-links": "error"
309
- }
310
- },
311
- test: true,
312
- formatters: {
313
- markdown: "prettier",
314
- prettierOptions: {
315
- singleQuote: false,
316
- semi: true,
317
- tabWidth: 2,
318
- useTabs: false,
319
- trailingComma: "all",
320
- endOfLine: "lf",
321
- printWidth: 160,
322
- proseWrap: "never",
323
- arrowParens: "avoid",
324
- htmlWhitespaceSensitivity: "strict",
325
- bracketSameLine: true,
326
- bracketSpacing: true,
327
- quoteProps: "as-needed",
328
- jsxSingleQuote: false,
329
- singleAttributePerLine: false
330
- }
331
- }
332
- },
333
- {
334
- rules: {
335
- "unicorn/filename-case": [
336
- "error",
337
- {
338
- case: "kebabCase",
339
- ignore: ["README.md"]
340
- }
341
- ],
342
- "unicorn/prefer-date-now": "error",
343
- "unicorn/prefer-string-trim-start-end": "error",
344
- "unicorn/prefer-string-raw": "error",
345
- "unicorn/prefer-object-from-entries": "error",
346
- "unicorn/prefer-default-parameters": "error",
347
- "unicorn/prefer-array-find": "error",
348
- "unicorn/prefer-array-flat": "error",
349
- "unicorn/prefer-array-flat-map": "error",
350
- "unicorn/prefer-array-index-of": "error",
351
- "unicorn/prefer-array-some": "error",
352
- "unicorn/prefer-logical-operator-over-ternary": "error",
353
- "unicorn/no-array-push-push": "error",
354
- "unicorn/no-empty-file": "error",
355
- "unicorn/no-array-for-each": "error",
356
- "unicorn/no-for-loop": "error",
357
- "unicorn/no-unnecessary-await": "error",
358
- "unicorn/no-unnecessary-polyfills": "error",
359
- "unicorn/no-useless-undefined": "error",
360
- "unicorn/no-useless-switch-case": "error",
361
- "unicorn/no-useless-spread": "error",
362
- "unicorn/no-console-spaces": "error",
363
- "unicorn/no-unused-properties": "error",
364
- "unicorn/no-useless-promise-resolve-reject": "error",
365
- "import/order": "off",
366
- "import/first": "error",
367
- "import/export": "error",
368
- "import/no-named-as-default": "off",
369
- "import/no-named-default": "off",
370
- "perfectionist/sort-imports": [
371
- "error",
372
- {
373
- type: "natural"
374
- }
375
- ],
376
- "perfectionist/sort-exports": [
377
- "error",
378
- {
379
- type: "natural"
380
- }
381
- ],
382
- "perfectionist/sort-named-imports": [
383
- "error",
384
- {
385
- type: "natural",
386
- groupKind: "values-first"
387
- }
388
- ],
389
- "perfectionist/sort-named-exports": [
390
- "error",
391
- {
392
- type: "natural",
393
- groupKind: "values-first"
394
- }
395
- ],
396
- "eslint-comments/no-unlimited-disable": "off"
397
- }
398
- },
399
- {
400
- ignores: ["**/*.md", "**/*.md/*.{ts,tsx}", "**/src/pages/__root.{ts,tsx}"],
401
- rules: {
402
- "react-naming-convention/filename": [
403
- "error",
404
- {
405
- rule: "kebab-case"
406
- }
407
- ]
408
- }
409
- },
410
- ...pluginRouter.configs["flat/recommended"]
411
- );
412
- }
413
-
414
- exports.defineEslintConfig = defineEslintConfig;
415
- /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
1
+ "use strict";/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:58.185Z, made by Venus. */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const eslintConfig=require("@antfu/eslint-config"),pluginRouter=require("@tanstack/eslint-plugin-router");function defineEslintConfig(){return eslintConfig.antfu({ignores:["**/node_modules","**/dist","**/public"],stylistic:{indent:2,jsx:!0,quotes:"double",semi:!0,overrides:{"style/line-comment-position":["error",{position:"above"}],"style/jsx-self-closing-comp":["error",{component:!0,html:!0}],"style/jsx-newline":["error",{prevent:!0,allowMultilines:!0}],"style/jsx-props-no-multi-spaces":"error","style/jsx-sort-props":["error",{callbacksLast:!0,shorthandFirst:!0,shorthandLast:!1,multiline:"last",ignoreCase:!0,noSortAlphabetically:!1,reservedFirst:["key","ref"]}],"style/newline-per-chained-call":["error",{ignoreChainWithDepth:3}],"style/object-property-newline":"error","style/brace-style":["error","1tbs"],"style/arrow-parens":["error","as-needed"],"style/multiline-comment-style":["error","separate-lines",{checkJSDoc:!1}],"style/implicit-arrow-linebreak":["error","beside"],"style/no-extra-semi":"error","style/array-element-newline":["error",{consistent:!0,multiline:!0,minItems:7}],"style/function-call-argument-newline":["error","consistent"],"style/padding-line-between-statements":["error",{blankLine:"always",prev:"*",next:["block","multiline-block-like","type","interface","enum","function","function-overload"]},{blankLine:"always",prev:["block","multiline-block-like","type","interface","enum","function","function-overload"],next:"*"}],"style/jsx-pascal-case":["error",{allowAllCaps:!1,allowLeadingUnderscore:!1,allowNamespace:!1,ignore:[]}],"style/switch-colon-spacing":["error",{before:!1,after:!0}],"style/object-curly-newline":["error",{ObjectExpression:{multiline:!0,consistent:!0,minProperties:3},ObjectPattern:{multiline:!0,consistent:!0,minProperties:3},ImportDeclaration:{consistent:!0,multiline:!0},ExportDeclaration:{consistent:!0,multiline:!0}}],"style/no-extra-parens":["error","all",{nestedBinaryExpressions:!1,ternaryOperandBinaryExpressions:!1,ignoreJSX:"multi-line"}]}},javascript:{overrides:{"no-duplicate-imports":"off","prefer-object-spread":"error","func-style":["error","declaration",{allowArrowFunctions:!0}],curly:["error","all"],"no-useless-escape":"error","no-useless-concat":"error","no-unused-private-class-members":"error","no-unsafe-optional-chaining":"error","no-dupe-else-if":"error","no-eq-null":"error","no-extra-label":"error","no-negated-condition":"error","no-invalid-this":"error","arrow-body-style":["error","as-needed"],"prefer-object-has-own":"error","prefer-numeric-literals":"error","prefer-named-capture-group":"error","prefer-destructuring":"error","object-shorthand":"error","require-atomic-updates":"error","require-await":"error",camelcase:["error",{properties:"always",ignoreGlobals:!0}],"no-promise-executor-return":["error",{allowVoid:!0}],"sort-imports":"off","no-console":"off"}},typescript:{overrides:{"ts/no-unused-expressions":["error",{enforceForJSX:!0}],"ts/no-unused-vars":["error",{args:"after-used",caughtErrors:"all",destructuredArrayIgnorePattern:"^_",ignoreRestSiblings:!0}],"ts/array-type":["error",{default:"array-simple",readonly:"array-simple"}],"ts/consistent-type-assertions":["error",{assertionStyle:"as",objectLiteralTypeAssertions:"allow"}],"ts/consistent-type-definitions":["error","interface"],"ts/max-params":["error",{max:5}]}},react:{overrides:{"react-naming-convention/component-name":["error","PascalCase"],"react-naming-convention/filename-extension":["error",{allow:"as-needed",extensions:[".tsx"]}],"react-hooks-extra/no-redundant-custom-hook":"error","react-hooks-extra/no-unnecessary-use-memo":"error","react-hooks-extra/no-unnecessary-use-callback":"error","react-naming-convention/use-state":"error","react-refresh/only-export-components":"error","react-hooks/exhaustive-deps":["error",{additionalHooks:"^use(Deep|Shallow)"}],"react/no-clone-element":"off","react/no-class-component":"error","react/no-children-prop":"off","react/no-children-to-array":"off","react/no-children-for-each":"off","react/no-children-count":"off"}},vue:!1,jsx:!0,regexp:!0,jsonc:!0,yaml:!0,toml:!0,markdown:{overrides:{"markdown/fenced-code-language":"error","markdown/no-duplicate-headings":"error","markdown/no-empty-links":"error"}},test:!0,formatters:{markdown:"prettier",prettierOptions:{singleQuote:!1,semi:!0,tabWidth:2,useTabs:!1,trailingComma:"all",endOfLine:"lf",printWidth:160,proseWrap:"never",arrowParens:"avoid",htmlWhitespaceSensitivity:"strict",bracketSameLine:!0,bracketSpacing:!0,quoteProps:"as-needed",jsxSingleQuote:!1,singleAttributePerLine:!1}}},{rules:{"unicorn/filename-case":["error",{case:"kebabCase",ignore:["README.md"]}],"unicorn/prefer-date-now":"error","unicorn/prefer-string-trim-start-end":"error","unicorn/prefer-string-raw":"error","unicorn/prefer-object-from-entries":"error","unicorn/prefer-default-parameters":"error","unicorn/prefer-array-find":"error","unicorn/prefer-array-flat":"error","unicorn/prefer-array-flat-map":"error","unicorn/prefer-array-index-of":"error","unicorn/prefer-array-some":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/no-array-push-push":"error","unicorn/no-empty-file":"error","unicorn/no-array-for-each":"error","unicorn/no-for-loop":"error","unicorn/no-unnecessary-await":"error","unicorn/no-unnecessary-polyfills":"error","unicorn/no-useless-undefined":"error","unicorn/no-useless-switch-case":"error","unicorn/no-useless-spread":"error","unicorn/no-console-spaces":"error","unicorn/no-unused-properties":"error","unicorn/no-useless-promise-resolve-reject":"error","import/order":"off","import/first":"error","import/export":"error","import/no-named-as-default":"off","import/no-named-default":"off","perfectionist/sort-imports":["error",{type:"natural"}],"perfectionist/sort-exports":["error",{type:"natural"}],"perfectionist/sort-named-imports":["error",{type:"natural",groupKind:"values-first"}],"perfectionist/sort-named-exports":["error",{type:"natural",groupKind:"values-first"}],"eslint-comments/no-unlimited-disable":"off"}},{ignores:["**/*.md","**/*.md/*.{ts,tsx}","**/src/pages/__root.{ts,tsx}"],rules:{"react-naming-convention/filename":["error",{rule:"kebab-case"}]}},...pluginRouter.configs["flat/recommended"])}exports.defineEslintConfig=defineEslintConfig;/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/index.cjs CHANGED
@@ -1,19 +1 @@
1
- /*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- const commitlintConfig = require('./commitlint-config.cjs');
7
- const config = require('./config.cjs');
8
- const eslintConfig = require('./eslint-config.cjs');
9
- const stylelintConfig = require('./stylelint-config.cjs');
10
- const tailwindConfig = require('./tailwind-config.cjs');
11
-
12
-
13
-
14
- exports.defineCommitlintConfig = commitlintConfig.defineCommitlintConfig;
15
- exports.defineConfig = config.defineConfig;
16
- exports.defineEslintConfig = eslintConfig.defineEslintConfig;
17
- exports.defineStylelintConfig = stylelintConfig.defineStylelintConfig;
18
- exports.defineTailwindConfig = tailwindConfig.defineTailwindConfig;
19
- /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
1
+ "use strict";/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:58.185Z, made by Venus. */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const commitlintConfig=require("./commitlint-config.cjs"),config=require("./config.cjs"),eslintConfig=require("./eslint-config.cjs"),stylelintConfig=require("./stylelint-config.cjs"),tailwindConfig=require("./tailwind-config.cjs");exports.defineCommitlintConfig=commitlintConfig.defineCommitlintConfig,exports.defineConfig=config.defineConfig,exports.defineEslintConfig=eslintConfig.defineEslintConfig,exports.defineStylelintConfig=stylelintConfig.defineStylelintConfig,exports.defineTailwindConfig=tailwindConfig.defineTailwindConfig;/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/modules.d.cjs CHANGED
@@ -1,5 +1 @@
1
- /*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
2
- 'use strict';
3
-
4
-
5
- /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
1
+ "use strict";/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:58.185Z, made by Venus. *//*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,39 +1 @@
1
- /*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- const radashi = require('radashi');
7
- const config = require('unplugin-config/vite');
8
- const constants = require('./constants.cjs');
9
-
10
- function constantCase(value) {
11
- return radashi.snake(value).toUpperCase();
12
- }
13
- function createAppConfigPlugin({
14
- basePublicPath,
15
- outputDir,
16
- appName = constants.DEFAULT_APP_NAME
17
- }) {
18
- return config({
19
- appName: `VEF_${constantCase(appName)}`,
20
- baseDir: basePublicPath,
21
- configFile: {
22
- generate: true,
23
- fileName: "app.config.js",
24
- outputDir: outputDir ?? constants.DEFAULT_OUTPUT_DIR
25
- },
26
- htmlInjection: {
27
- enable: true,
28
- position: "head-prepend",
29
- templates: ["index.html"]
30
- },
31
- envVariables: {
32
- prefix: constants.ENV_APP_PREFIX,
33
- files: ["env/.env", "env/.env.production"]
34
- }
35
- });
36
- }
37
-
38
- exports.createAppConfigPlugin = createAppConfigPlugin;
39
- /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
1
+ "use strict";/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:58.185Z, made by Venus. */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const radashi=require("radashi"),config=require("unplugin-config/vite"),constants=require("./constants.cjs");function constantCase(value){return radashi.snake(value).toUpperCase()}function createAppConfigPlugin({basePublicPath,outputDir,appName=constants.DEFAULT_APP_NAME}){return config({appName:`VEF_${constantCase(appName)}`,baseDir:basePublicPath,configFile:{generate:!0,fileName:"app.config.js",outputDir:outputDir??constants.DEFAULT_OUTPUT_DIR},htmlInjection:{enable:!0,position:"head-prepend",templates:["index.html"]},envVariables:{prefix:constants.ENV_APP_PREFIX,files:["env/.env","env/.env.production"]}})}exports.createAppConfigPlugin=createAppConfigPlugin;/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,35 +1,4 @@
1
- /*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- const process = require('node:process');
7
- const constants = require('./constants.cjs');
8
-
9
- function createConventionalConfigPlugin({
10
- appName,
11
- appVersion,
12
- basePublicPath,
13
- projectDir,
14
- outputDir,
15
- serverPort,
16
- proxies
17
- }) {
18
- return {
19
- name: "vef-framework:conventional-config",
20
- config(_, { command }) {
21
- const isDev = command === "serve";
22
- return {
23
- appType: "spa",
24
- root: projectDir,
25
- base: basePublicPath,
26
- publicDir: "public",
27
- envDir: constants.ENV_DIR,
28
- envPrefix: [constants.ENV_BUILD_PREFIX, constants.ENV_APP_PREFIX],
29
- define: {
30
- __VEF_FRAMEWORK_VERSION__: `"${process.env.VEF_FRAMEWORK_VERSION}"`,
31
- __VEF_APP_VERSION__: `"${appVersion}"`,
32
- __VEF_APP_CONFIG__: isDev ? `
1
+ "use strict";/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:58.185Z, made by Venus. */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const process=require("node:process"),constants=require("./constants.cjs");function createConventionalConfigPlugin({appName,appVersion,basePublicPath,projectDir,outputDir,serverPort,proxies}){return{name:"vef-framework:conventional-config",config(_,{command}){const isDev=command==="serve";return{appType:"spa",root:projectDir,base:basePublicPath,publicDir:"public",envDir:constants.ENV_DIR,envPrefix:[constants.ENV_BUILD_PREFIX,constants.ENV_APP_PREFIX],define:{__VEF_FRAMEWORK_VERSION__:`"${process.env.VEF_FRAMEWORK_VERSION}"`,__VEF_APP_VERSION__:`"${appVersion}"`,__VEF_APP_CONFIG__:isDev?`
33
2
  (function () {
34
3
  const env = import.meta.env;
35
4
  const config = Object.keys(env).filter(key => key.startsWith(${JSON.stringify(constants.ENV_APP_PREFIX)}))
@@ -39,62 +8,4 @@ function createConventionalConfigPlugin({
39
8
  }, {});
40
9
  return Object.freeze(config);
41
10
  })()
42
- ` : `window.__PRODUCTION__VEF_${appName ?? constants.DEFAULT_APP_NAME}__CONF__`
43
- },
44
- css: {
45
- modules: {
46
- scopeBehaviour: "local",
47
- localsConvention: "camelCase"
48
- }
49
- },
50
- optimizeDeps: {
51
- include: ["react", "react-dom"]
52
- },
53
- esbuild: {
54
- target: "es2023",
55
- drop: ["console", "debugger"],
56
- charset: "utf8"
57
- },
58
- build: {
59
- outDir: outputDir ?? constants.DEFAULT_OUTPUT_DIR,
60
- target: "modules",
61
- assetsDir: constants.ASSETS_DIR,
62
- assetsInlineLimit: 10240,
63
- reportCompressedSize: false,
64
- chunkSizeWarningLimit: 2048,
65
- minify: true,
66
- sourcemap: false,
67
- rollupOptions: {
68
- maxParallelFileOps: 200,
69
- input: {
70
- main: "index.html"
71
- },
72
- output: {
73
- banner: `/*! Powered by VEF Framework v${process.env.VEF_FRAMEWORK_VERSION}.${appVersion ? ` App version v${appVersion}.` : ""} Built at ${(/* @__PURE__ */ new Date()).toISOString()} */`,
74
- chunkFileNames: `${constants.ASSETS_DIR}/js/[name]-[hash].js`,
75
- entryFileNames: `${constants.ASSETS_DIR}/js/[name]-[hash].js`,
76
- assetFileNames: `${constants.ASSETS_DIR}/[ext]/[name]-[hash].[ext]`,
77
- manualChunks: {
78
- "react": ["react", "react-dom"],
79
- "vef-shared": ["@vef-framework/shared"],
80
- "vef-components": ["@vef-framework/components"],
81
- "vef-hooks": ["@vef-framework/hooks"],
82
- "vef-core": ["@vef-framework/core"],
83
- "vef-starter": ["@vef-framework/starter"]
84
- }
85
- }
86
- }
87
- },
88
- server: {
89
- port: serverPort || constants.DEFAULT_SERVER_PORT,
90
- host: true,
91
- open: true,
92
- proxy: proxies
93
- }
94
- };
95
- }
96
- };
97
- }
98
-
99
- exports.createConventionalConfigPlugin = createConventionalConfigPlugin;
100
- /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
11
+ `:`window.__PRODUCTION__VEF_${appName??constants.DEFAULT_APP_NAME}__CONF__`},css:{modules:{scopeBehaviour:"local",localsConvention:"camelCase"}},optimizeDeps:{include:["react","react-dom"]},esbuild:{target:"es2023",drop:["console","debugger"],charset:"utf8"},build:{outDir:outputDir??constants.DEFAULT_OUTPUT_DIR,target:"modules",assetsDir:constants.ASSETS_DIR,assetsInlineLimit:10240,reportCompressedSize:!1,chunkSizeWarningLimit:2048,minify:!0,sourcemap:!1,rollupOptions:{maxParallelFileOps:200,input:{main:"index.html"},output:{banner:`/*! Powered by VEF Framework v${process.env.VEF_FRAMEWORK_VERSION}.${appVersion?` App version v${appVersion}.`:""} Built at ${new Date().toISOString()} */`,chunkFileNames:`${constants.ASSETS_DIR}/js/[name]-[hash].js`,entryFileNames:`${constants.ASSETS_DIR}/js/[name]-[hash].js`,assetFileNames:`${constants.ASSETS_DIR}/[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"]}}}},server:{port:serverPort||constants.DEFAULT_SERVER_PORT,host:!0,open:!0,proxy:proxies}}}}}exports.createConventionalConfigPlugin=createConventionalConfigPlugin;/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,25 +1 @@
1
- /*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- const eslint = require('vite-plugin-eslint2');
7
-
8
- function createEslintPlugin() {
9
- return eslint({
10
- fix: true,
11
- test: false,
12
- dev: true,
13
- build: false,
14
- cache: true,
15
- cacheLocation: "node_modules/.cache/.eslintcache",
16
- include: ["*.{js,ts,json,jsonc,yaml,toml,md}", "src/**/*.{ts,tsx,json,jsonc,yaml,toml,md}"],
17
- exclude: ["node_modules", "virtual:", "vef:"],
18
- emitError: true,
19
- emitWarning: true,
20
- emitWarningAsError: true
21
- });
22
- }
23
-
24
- exports.createEslintPlugin = createEslintPlugin;
25
- /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
1
+ "use strict";/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:58.185Z, made by Venus. */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const eslint=require("vite-plugin-eslint2");function createEslintPlugin(){return eslint({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})}exports.createEslintPlugin=createEslintPlugin;/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */