@vef-framework/dev 1.0.100 → 1.0.101

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 +225 -2
  2. package/es/commitlint-config.js +11 -2
  3. package/es/config.js +77 -2
  4. package/es/constants.js +14 -2
  5. package/es/eslint-config.js +410 -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 +95 -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 +44 -2
  17. package/es/plugin-stylelint.js +20 -2
  18. package/es/plugin-svgr.js +55 -2
  19. package/es/plugin-tailwind.js +8 -2
  20. package/es/plugin-tailwindcss.js +21 -2
  21. package/es/plugin-tsconfig-paths.js +10 -2
  22. package/es/plugin-visualizer.js +12 -2
  23. package/es/plugin-webfont.js +11 -2
  24. package/es/stylelint-config.js +64 -2
  25. package/es/tailwind-config.js +392 -2
  26. package/lib/cli.cjs +227 -2
  27. package/lib/commitlint-config.cjs +15 -2
  28. package/lib/config.cjs +81 -2
  29. package/lib/constants.cjs +28 -2
  30. package/lib/eslint-config.cjs +414 -2
  31. package/lib/index.cjs +18 -2
  32. package/lib/modules.d.cjs +4 -2
  33. package/lib/plugin-app-config.cjs +38 -2
  34. package/lib/plugin-conventional-config.cjs +99 -2
  35. package/lib/plugin-eslint.cjs +24 -2
  36. package/lib/plugin-html.cjs +86 -2
  37. package/lib/plugin-icons.cjs +22 -2
  38. package/lib/plugin-injection.cjs +21 -2
  39. package/lib/plugin-inspect.cjs +15 -2
  40. package/lib/plugin-react-swc.cjs +14 -2
  41. package/lib/plugin-router.cjs +48 -2
  42. package/lib/plugin-stylelint.cjs +24 -2
  43. package/lib/plugin-svgr.cjs +59 -2
  44. package/lib/plugin-tailwind.cjs +12 -2
  45. package/lib/plugin-tailwindcss.cjs +25 -2
  46. package/lib/plugin-tsconfig-paths.cjs +14 -2
  47. package/lib/plugin-visualizer.cjs +16 -2
  48. package/lib/plugin-webfont.cjs +15 -2
  49. package/lib/stylelint-config.cjs +68 -2
  50. package/lib/tailwind-config.cjs +396 -2
  51. package/lib/types.cjs +4 -2
  52. package/package.json +1 -1
  53. package/template/_package.json +5 -5
@@ -1,3 +1,100 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("node:process"),r=require("./constants.cjs");exports.createConventionalConfigPlugin=function createConventionalConfigPlugin({appName:n,appVersion:o,basePublicPath:t,projectDir:s,outputDir:a,serverPort:i,proxies:c}){return{name:"vef-framework:conventional-config",config(_,{command:u}){const m="serve"===u;return{appType:"spa",root:s,base:t,publicDir:"public",envDir:r.ENV_DIR,envPrefix:[r.ENV_BUILD_PREFIX,r.ENV_APP_PREFIX],define:{__VEF_FRAMEWORK_VERSION__:`"${e.env.VEF_FRAMEWORK_VERSION}"`,__VEF_APP_VERSION__:`"${o}"`,__VEF_APP_CONFIG__:m?`\n (function () {\n const env = import.meta.env;\n const config = Object.keys(env).filter(key => key.startsWith(${JSON.stringify(r.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_${n??r.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:a??r.DEFAULT_OUTPUT_DIR,target:"modules",assetsDir:r.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${e.env.VEF_FRAMEWORK_VERSION}.${o?` App version v${o}.`:""} Built at ${(new Date).toISOString()} */`,chunkFileNames:`${r.ASSETS_DIR}/js/[name]-[hash].js`,entryFileNames:`${r.ASSETS_DIR}/js/[name]-[hash].js`,assetFileNames:`${r.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:i||r.DEFAULT_SERVER_PORT,host:!0,open:!0,proxy:c}}}}};
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 ? `
33
+ (function () {
34
+ const env = import.meta.env;
35
+ const config = Object.keys(env).filter(key => key.startsWith(${JSON.stringify(constants.ENV_APP_PREFIX)}))
36
+ .reduce((acc, key) => {
37
+ acc[key] = env[key];
38
+ return acc;
39
+ }, {});
40
+ return Object.freeze(config);
41
+ })()
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;
3
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 */
@@ -1,3 +1,25 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vite-plugin-eslint2");exports.createEslintPlugin=function createEslintPlugin(){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})};
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;
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 */
@@ -1,3 +1,87 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("html-minifier-terser"),t="index.html",r='\n<!doctype html>\n<html lang="en">\n <head>\n <meta charset="UTF-8" />\n <link rel="icon" type="image/svg+xml" href="%VEF_APP_FAVICON%" />\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <meta name="description" content="Powered by VEF Framework" />\n <title>%VEF_APP_TITLE%</title>\n </head>\n <body>\n <div id="root"></div>\n <script type="module" src="src/main.ts"><\/script>\n </body>\n</html>\n';exports.createHtmlPlugin=function createHtmlPlugin(){return[{name:"vef-framework:html",resolveId(e){if(e===t)return t},load(e){if(e===t)return r},transformIndexHtml:{order:"pre",handler:()=>r}},{name:"vite-plugin-vef-framework-html-minify",enforce:"post",async generateBundle(r,n){for(const r of Object.values(n))"asset"===r.type&&"string"==typeof r.source&&r.fileName===t&&(r.source=await e.minify(r.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}))}}]};
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 htmlMinifierTerser = require('html-minifier-terser');
7
+
8
+ const virtualModuleId = "index.html";
9
+ const htmlContent = `
10
+ <!doctype html>
11
+ <html lang="en">
12
+ <head>
13
+ <meta charset="UTF-8" />
14
+ <link rel="icon" type="image/svg+xml" href="%VEF_APP_FAVICON%" />
15
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
16
+ <meta name="description" content="Powered by VEF Framework" />
17
+ <title>%VEF_APP_TITLE%</title>
18
+ </head>
19
+ <body>
20
+ <div id="root"></div>
21
+ <script type="module" src="src/main.ts"><\/script>
22
+ </body>
23
+ </html>
24
+ `;
25
+ function createHtmlPlugin() {
26
+ return [
27
+ {
28
+ name: "vef-framework:html",
29
+ resolveId(source) {
30
+ if (source === virtualModuleId) {
31
+ return virtualModuleId;
32
+ }
33
+ },
34
+ load(id) {
35
+ if (id === virtualModuleId) {
36
+ return htmlContent;
37
+ }
38
+ },
39
+ transformIndexHtml: {
40
+ order: "pre",
41
+ handler: () => htmlContent
42
+ }
43
+ },
44
+ {
45
+ name: "vite-plugin-vef-framework-html-minify",
46
+ enforce: "post",
47
+ async generateBundle(_, bundles) {
48
+ for (const bundle of Object.values(bundles)) {
49
+ if (bundle.type === "asset" && typeof bundle.source === "string" && bundle.fileName === virtualModuleId) {
50
+ bundle.source = await htmlMinifierTerser.minify(
51
+ bundle.source,
52
+ {
53
+ collapseBooleanAttributes: true,
54
+ collapseInlineTagWhitespace: true,
55
+ collapseWhitespace: true,
56
+ conservativeCollapse: false,
57
+ keepClosingSlash: true,
58
+ minifyCSS: true,
59
+ minifyJS: true,
60
+ minifyURLs: true,
61
+ noNewlinesBeforeTagClose: true,
62
+ quoteCharacter: `"`,
63
+ removeAttributeQuotes: false,
64
+ removeComments: true,
65
+ removeEmptyAttributes: true,
66
+ removeOptionalTags: false,
67
+ removeRedundantAttributes: true,
68
+ removeScriptTypeAttributes: false,
69
+ removeTagWhitespace: false,
70
+ removeEmptyElements: false,
71
+ removeStyleLinkTypeAttributes: false,
72
+ sortAttributes: true,
73
+ sortClassName: true,
74
+ trimCustomFragments: true,
75
+ useShortDoctype: true,
76
+ html5: true
77
+ }
78
+ );
79
+ }
80
+ }
81
+ }
82
+ }
83
+ ];
84
+ }
85
+
86
+ exports.createHtmlPlugin = createHtmlPlugin;
3
87
  /*! 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,23 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("node:path"),n=require("node:url"),t=require("unplugin-icons/vite");var r="undefined"!=typeof document?document.currentScript:null;exports.createIconsPlugin=function createIconsPlugin(o){return t({autoInstall:!1,compiler:"jsx",jsx:"react",defaultClass:"inline-block",scale:1.2,collectionsNodeResolvePath:[o,e.resolve(e.dirname(n.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:r&&"SCRIPT"===r.tagName.toUpperCase()&&r.src||new URL("plugin-icons.cjs",document.baseURI).href)),"..")]})};
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 node_path = require('node:path');
7
+ const node_url = require('node:url');
8
+ const icons = require('unplugin-icons/vite');
9
+
10
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
11
+ function createIconsPlugin(projectDir) {
12
+ return icons({
13
+ autoInstall: false,
14
+ compiler: "jsx",
15
+ jsx: "react",
16
+ defaultClass: "inline-block",
17
+ scale: 1.2,
18
+ collectionsNodeResolvePath: [projectDir, node_path.resolve(node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('plugin-icons.cjs', document.baseURI).href)))), "..")]
19
+ });
20
+ }
21
+
22
+ exports.createIconsPlugin = createIconsPlugin;
3
23
  /*! 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,22 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("node:path");exports.createInjectionPlugin=function createInjectionPlugin(){return{name:"vef-framework:injection",transform:(n,t)=>"src"===e.basename(e.dirname(t))&&e.basename(t).startsWith("main.ts")?`import "vef:tailwind.css";\n${n}`:null}};
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 node_path = require('node:path');
7
+
8
+ function createInjectionPlugin() {
9
+ return {
10
+ name: "vef-framework:injection",
11
+ transform(code, id) {
12
+ if (node_path.basename(node_path.dirname(id)) === "src" && node_path.basename(id).startsWith("main.ts")) {
13
+ return `import "vef:tailwind.css";
14
+ ${code}`;
15
+ }
16
+ return null;
17
+ }
18
+ };
19
+ }
20
+
21
+ exports.createInjectionPlugin = createInjectionPlugin;
3
22
  /*! 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,16 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vite-plugin-inspect");exports.createInspectPlugin=function createInspectPlugin(){return e({dev:!0,build:!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 inspect = require('vite-plugin-inspect');
7
+
8
+ function createInspectPlugin() {
9
+ return inspect({
10
+ dev: true,
11
+ build: false
12
+ });
13
+ }
14
+
15
+ exports.createInspectPlugin = createInspectPlugin;
3
16
  /*! 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,15 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@vitejs/plugin-react-swc");exports.createReactSwcPlugin=function createReactSwcPlugin(){return e({devTarget:"esnext"})};
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 react = require('@vitejs/plugin-react-swc');
7
+
8
+ function createReactSwcPlugin() {
9
+ return react({
10
+ devTarget: "esnext"
11
+ });
12
+ }
13
+
14
+ exports.createReactSwcPlugin = createReactSwcPlugin;
3
15
  /*! 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,49 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@tanstack/router-plugin/vite"),t=require("node:path"),r=require("./constants.cjs");exports.createRouterPlugin=function createRouterPlugin(o,n="hash",u){return e.TanStackRouterVite({routesDirectory:t.resolve(o,r.SRC_DIR,r.PAGES_DIR),generatedRouteTree:t.resolve(o,r.SRC_DIR,r.ROUTER_DIR,"router.gen.ts"),quoteStyle:"double",semicolons:!0,disableTypes:!1,addExtensions:!1,disableLogging:!1,disableManifestGeneration:!1,routeFileIgnorePattern:"components",indexToken:"index",routeToken:"route",enableRouteGeneration:!0,autoCodeSplitting:u,routeTreeFileHeader:["/* eslint-disable */","// @ts-nocheck","// noinspection JSUnusedGlobalSymbols",'import { createRouter } from "@vef-framework/starter";'],routeTreeFileFooter:[`const router = createRouter({\n routeTree,\n history: "${n}",\n});\n`,'declare module "@tanstack/react-router" {\n interface Register {\n router: typeof router;\n }\n}\n',"export default router;"]})};
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 vite = require('@tanstack/router-plugin/vite');
7
+ const node_path = require('node:path');
8
+ const constants = require('./constants.cjs');
9
+
10
+ function createRouterPlugin(projectDir, history = "hash", autoCodeSplitting) {
11
+ return vite.TanStackRouterVite({
12
+ routesDirectory: node_path.resolve(projectDir, constants.SRC_DIR, constants.PAGES_DIR),
13
+ generatedRouteTree: node_path.resolve(projectDir, constants.SRC_DIR, constants.ROUTER_DIR, "router.gen.ts"),
14
+ quoteStyle: "double",
15
+ semicolons: true,
16
+ disableTypes: false,
17
+ addExtensions: false,
18
+ disableLogging: false,
19
+ disableManifestGeneration: false,
20
+ routeFileIgnorePattern: "components",
21
+ indexToken: "index",
22
+ routeToken: "route",
23
+ enableRouteGeneration: true,
24
+ autoCodeSplitting,
25
+ routeTreeFileHeader: [
26
+ "/* eslint-disable */",
27
+ "// @ts-nocheck",
28
+ "// noinspection JSUnusedGlobalSymbols",
29
+ `import { createRouter } from "@vef-framework/starter";`
30
+ ],
31
+ routeTreeFileFooter: [
32
+ `const router = createRouter({
33
+ routeTree,
34
+ history: "${history}",
35
+ });
36
+ `,
37
+ `declare module "@tanstack/react-router" {
38
+ interface Register {
39
+ router: typeof router;
40
+ }
41
+ }
42
+ `,
43
+ `export default router;`
44
+ ]
45
+ });
46
+ }
47
+
48
+ exports.createRouterPlugin = createRouterPlugin;
3
49
  /*! 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.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vite-plugin-stylelint");exports.createStylelintPlugin=function createStylelintPlugin(){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})};
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 stylelint = require('vite-plugin-stylelint');
7
+
8
+ function createStylelintPlugin() {
9
+ return stylelint({
10
+ fix: true,
11
+ test: false,
12
+ dev: true,
13
+ build: false,
14
+ cache: true,
15
+ cacheLocation: "node_modules/.cache/.stylelintcache",
16
+ include: ["src/**/*.{scss,css}"],
17
+ exclude: ["node_modules", "virtual:", "vef:"],
18
+ emitError: true,
19
+ emitWarning: true,
20
+ emitWarningAsError: true
21
+ });
22
+ }
23
+
24
+ exports.createStylelintPlugin = createStylelintPlugin;
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 */
@@ -1,3 +1,60 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vite-plugin-svgr");exports.createSvgrPlugin=function createSvgrPlugin(){return e({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:{}}})};
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 svgr = require('vite-plugin-svgr');
7
+
8
+ function createSvgrPlugin() {
9
+ return svgr({
10
+ include: "**/*.svg?react",
11
+ esbuildOptions: {
12
+ platform: "browser",
13
+ minify: true,
14
+ jsx: "automatic"
15
+ },
16
+ svgrOptions: {
17
+ plugins: [
18
+ "@svgr/plugin-svgo",
19
+ "@svgr/plugin-jsx"
20
+ ],
21
+ icon: false,
22
+ dimensions: false,
23
+ prettier: true,
24
+ memo: true,
25
+ svgo: true,
26
+ ref: false,
27
+ typescript: true,
28
+ jsxRuntime: "automatic",
29
+ svgoConfig: {
30
+ multipass: true,
31
+ datauri: "base64",
32
+ js2svg: {
33
+ indent: 2,
34
+ pretty: true
35
+ },
36
+ plugins: [
37
+ "preset-default",
38
+ {
39
+ name: "prefixIds",
40
+ params: {
41
+ prefix: "vef"
42
+ }
43
+ },
44
+ {
45
+ name: "cleanupIds",
46
+ params: {
47
+ force: true,
48
+ remove: true,
49
+ minify: true
50
+ }
51
+ }
52
+ ]
53
+ },
54
+ svgProps: {}
55
+ }
56
+ });
57
+ }
58
+
59
+ exports.createSvgrPlugin = createSvgrPlugin;
3
60
  /*! 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,13 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@tailwindcss/vite");exports.createTailwindPlugin=function createTailwindPlugin(){return e()};
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 tailwindcss = require('@tailwindcss/vite');
7
+
8
+ function createTailwindPlugin() {
9
+ return tailwindcss();
10
+ }
11
+
12
+ exports.createTailwindPlugin = createTailwindPlugin;
3
13
  /*! 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,26 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i="vef:tailwind.css",e=`\0${i}`;exports.createTailwindcssPlugin=function createTailwindcssPlugin(){return{name:"vef-framework:tailwindcss",resolveId(n){if(n===i)return e},load(i){if(i===e)return'@import "tailwindcss";\n@config "./tailwind.config.js";'}}};
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 virtualModuleId = "vef:tailwind.css";
7
+ const resolvedVirtualModuleId = `\0${virtualModuleId}`;
8
+ function createTailwindcssPlugin() {
9
+ return {
10
+ name: "vef-framework:tailwindcss",
11
+ resolveId(id) {
12
+ if (id === virtualModuleId) {
13
+ return resolvedVirtualModuleId;
14
+ }
15
+ },
16
+ load(id) {
17
+ if (id === resolvedVirtualModuleId) {
18
+ return `@import "tailwindcss";
19
+ @config "./tailwind.config.js";`;
20
+ }
21
+ }
22
+ };
23
+ }
24
+
25
+ exports.createTailwindcssPlugin = createTailwindcssPlugin;
3
26
  /*! 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,15 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vite-tsconfig-paths");exports.createTsconfigPathsPlugin=function createTsconfigPathsPlugin(e){return t({root:e})};
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 tsconfigPaths = require('vite-tsconfig-paths');
7
+
8
+ function createTsconfigPathsPlugin(projectDir) {
9
+ return tsconfigPaths({
10
+ root: projectDir
11
+ });
12
+ }
13
+
14
+ exports.createTsconfigPathsPlugin = createTsconfigPathsPlugin;
3
15
  /*! 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,17 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("rollup-plugin-visualizer");exports.createVisualizerPlugin=function createVisualizerPlugin(i){return e.visualizer({filename:"dist/stats.html",title:"Building Visualizer",projectRoot:i})};
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 rollupPluginVisualizer = require('rollup-plugin-visualizer');
7
+
8
+ function createVisualizerPlugin(projectDir) {
9
+ return rollupPluginVisualizer.visualizer({
10
+ filename: "dist/stats.html",
11
+ title: "Building Visualizer",
12
+ projectRoot: projectDir
13
+ });
14
+ }
15
+
16
+ exports.createVisualizerPlugin = createVisualizerPlugin;
3
17
  /*! 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,16 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vite-plugin-webfont-dl");exports.createWebfontPlugin=function createWebfontPlugin(){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"])};
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 webfont = require('vite-plugin-webfont-dl');
7
+
8
+ function createWebfontPlugin() {
9
+ return webfont([
10
+ "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",
11
+ "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"
12
+ ]);
13
+ }
14
+
15
+ exports.createWebfontPlugin = createWebfontPlugin;
3
16
  /*! 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,69 @@
1
- /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:53.492Z, made by Venus. */
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("stylelint-config-recess-order/groups");exports.defineStylelintConfig=function defineStylelintConfig(){return{extends:["stylelint-config-standard-scss","stylelint-config-recommended"],plugins:["stylelint-order"],rules:{"order/order":["dollar-variables","at-variables","custom-properties","less-mixins","declarations","at-rules","rules"],"order/properties-order":e.map((e=>({...e,emptyLineBefore:"always",noEmptyLineBetween:!0}))),"declaration-empty-line-before":null,"at-rule-no-unknown":null,"function-no-unknown":null,"number-max-precision":null,"color-hex-length":"long","color-hex-alpha":"never","color-named":"never","unit-allowed-list":["px","em","rem","%","vw","vh","fr","deg","rad","grad","turn","ms","s"],"scss/function-no-unknown":[!0,{ignoreFunctions:[]}],"scss/at-rule-no-unknown":[!0,{ignoreAtRules:["config"]}]}}};
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 propertyGroups = require('stylelint-config-recess-order/groups');
7
+
8
+ function defineStylelintConfig() {
9
+ return {
10
+ extends: [
11
+ "stylelint-config-standard-scss",
12
+ "stylelint-config-recommended"
13
+ ],
14
+ plugins: ["stylelint-order"],
15
+ rules: {
16
+ "order/order": [
17
+ "dollar-variables",
18
+ "at-variables",
19
+ "custom-properties",
20
+ "less-mixins",
21
+ "declarations",
22
+ "at-rules",
23
+ "rules"
24
+ ],
25
+ "order/properties-order": propertyGroups.map((group) => ({
26
+ ...group,
27
+ emptyLineBefore: "always",
28
+ noEmptyLineBetween: true
29
+ })),
30
+ "declaration-empty-line-before": null,
31
+ "at-rule-no-unknown": null,
32
+ "function-no-unknown": null,
33
+ "number-max-precision": null,
34
+ "color-hex-length": "long",
35
+ "color-hex-alpha": "never",
36
+ "color-named": "never",
37
+ "unit-allowed-list": [
38
+ "px",
39
+ "em",
40
+ "rem",
41
+ "%",
42
+ "vw",
43
+ "vh",
44
+ "fr",
45
+ "deg",
46
+ "rad",
47
+ "grad",
48
+ "turn",
49
+ "ms",
50
+ "s"
51
+ ],
52
+ "scss/function-no-unknown": [
53
+ true,
54
+ {
55
+ ignoreFunctions: []
56
+ }
57
+ ],
58
+ "scss/at-rule-no-unknown": [
59
+ true,
60
+ {
61
+ ignoreAtRules: ["config"]
62
+ }
63
+ ]
64
+ }
65
+ };
66
+ }
67
+
68
+ exports.defineStylelintConfig = defineStylelintConfig;
3
69
  /*! 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 */