@vef-framework/dev 1.0.63 → 1.0.64

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