@vef-framework/dev 1.0.55 ā 1.0.56
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.
- package/es/cli.js +1 -1
- package/es/commitlint-config.js +1 -1
- package/es/config.js +1 -1
- package/es/constants.js +1 -1
- package/es/eslint-config.js +1 -1
- package/es/index.js +1 -1
- package/es/modules.d.js +1 -1
- package/es/plugin-app-config.js +1 -1
- package/es/plugin-conventional-config.js +1 -1
- package/es/plugin-eslint.js +1 -1
- package/es/plugin-html.js +1 -1
- package/es/plugin-icons.js +1 -1
- package/es/plugin-injection.js +1 -1
- package/es/plugin-inspect.js +1 -1
- package/es/plugin-react-swc.js +1 -1
- package/es/plugin-router.js +1 -1
- package/es/plugin-stylelint.js +1 -1
- package/es/plugin-svgr.js +1 -1
- package/es/plugin-tailwindcss.js +1 -1
- package/es/plugin-tsconfig-paths.js +1 -1
- package/es/plugin-visualizer.js +1 -1
- package/es/plugin-webfont.js +1 -1
- package/es/stylelint-config.js +1 -1
- package/es/tailwind-config.js +1 -1
- package/lib/cli.cjs +1 -1
- package/lib/commitlint-config.cjs +1 -1
- package/lib/config.cjs +1 -1
- package/lib/constants.cjs +1 -1
- package/lib/eslint-config.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/modules.d.cjs +1 -1
- package/lib/plugin-app-config.cjs +1 -1
- package/lib/plugin-conventional-config.cjs +1 -1
- package/lib/plugin-eslint.cjs +1 -1
- package/lib/plugin-html.cjs +1 -1
- package/lib/plugin-icons.cjs +1 -1
- package/lib/plugin-injection.cjs +1 -1
- package/lib/plugin-inspect.cjs +1 -1
- package/lib/plugin-react-swc.cjs +1 -1
- package/lib/plugin-router.cjs +1 -1
- package/lib/plugin-stylelint.cjs +1 -1
- package/lib/plugin-svgr.cjs +1 -1
- package/lib/plugin-tailwindcss.cjs +1 -1
- package/lib/plugin-tsconfig-paths.cjs +1 -1
- package/lib/plugin-visualizer.cjs +1 -1
- package/lib/plugin-webfont.cjs +1 -1
- package/lib/stylelint-config.cjs +1 -1
- package/lib/tailwind-config.cjs +1 -1
- package/lib/types.cjs +1 -1
- package/package.json +12 -12
- package/template/package.json +5 -5
package/es/cli.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import e from"@commitlint/format";import t from"@commitlint/lint";import i from"@commitlint/load";import o from"@commitlint/read";import n from"chalk";import{program as s}from"commander";import a from"consola";import{execa as c}from"execa";import r from"fs-extra";import l from"lint-staged";import{resolve as m}from"node:path";import p from"node:process";import d from"ora";import f from"prompts";import{loadConfigFromFile as u,createServer as g,build as y,preview as w}from"vite";const{exists:v,readJsonSync:h,writeFile:E,readJson:S,writeJson:b,copy:F,readFile:k,move:V}=r,j=p.cwd();const N=function(){const e=m(import.meta.dirname,"../package.json");return h(e,{encoding:"utf-8"}).version}();async function _(){return(await import("../bin/hoist-patterns.js")).default}function x(e,t){return t||("build"===e?"production":"development")}async function I(e,t,i){const o=m(j,e||"vef.config.ts");if(!await v(o))throw a.error(`Config file not found: ${o}, it is required for VEF Framework`),new Error(`Config file not found: ${o}`);const n=await u({command:t,mode:i},o);return n?.config??{}}function C(e,t){a.error(`Error during ${e}:`,t),p.exit(1)}s.name("vef").description(n.magenta("VEF Framework CLI")).addHelpText("before",n.blue("VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus.")).addHelpText("before",n.bgGreenBright(`Version: ${N}`)).version(N).option("--mode <mode>","Specify running mode (will override default NODE_ENV)"),s.command("dev").description("Start dev server").option("-c, --config <file>","Specify vef config file","vef.config.ts").action((async e=>{try{const t=x("serve",s.opts().mode);p.env.NODE_ENV=t,p.env.VEF_FRAMEWORK_VERSION=N;const i=await I(e.config,"serve",t),o=await g({...i,mode:t,configFile:!1,logLevel:"info"});await o.listen(),o.printUrls(),o.bindCLIShortcuts({print:!0})}catch(e){C("dev server startup",e)}})),s.command("build").description("Build for production").option("-c, --config <file>","Specify vef config file","vef.config.ts").action((async e=>{try{const t=x("build",s.opts().mode);p.env.NODE_ENV=t,p.env.VEF_FRAMEWORK_VERSION=N;const i=await I(e.config,"build",t);await y({...i,mode:t,configFile:!1,logLevel:"info"}),a.success("Build completed successfully!")}catch(e){C("build",e)}})),s.command("preview").description("Preview the build").option("-c, --config <file>","Specify vef config file","vef.config.ts").action((async e=>{try{const t=x("build",s.opts().mode);p.env.NODE_ENV=t,p.env.VEF_FRAMEWORK_VERSION=N;const i=await I(e.config,"build",t),o=await w({...i,mode:t,configFile:!1,logLevel:"info"});o.printUrls(),o.bindCLIShortcuts({print:!0})}catch(e){C("preview server startup",e)}})),s.command("prepare").description("Sets up the project for development mode").action((async()=>{await v(m(j,".husky"))||((await import("husky")).default(),a.success("Successfully set up husky")),await v(m(j,".husky/pre-commit"))||(await E(m(j,".husky/pre-commit"),"pnpm lint -t code"),a.success("Successfully set up pre-commit hook")),await v(m(j,".husky/commit-msg"))||(await E(m(j,".husky/commit-msg"),"pnpm lint -t commit-message -m $1"),a.success("Successfully set up commit-msg hook"));const e=await S(m(j,"package.json"),{encoding:"utf-8"}),{scripts:t}=e;let i=!1;t.prepare||(t.prepare="vef prepare",i=!0),i&&(await b(m(j,"package.json"),e,{encoding:"utf-8",spaces:2}),a.success("Successfully set up prepare script and lint-staged"))})),s.command("install").description("Install the dependencies of the project").action((async()=>{const e=await _();await c({cwd:j,stdio:"inherit"})("pnpm",["install",...e.flatMap((e=>["--public-hoist-pattern",e]))])})),s.command("lint").description("Run lint-staged for the project").option("-t, --type <type>","Specify the type(code/commit-message) of linting to run","code").option("-m, --message <message>","Specify the commit message").action((async n=>{const{type:s,message:a}=n;if("code"===s)await l({cwd:j,concurrent:!0,config:{"*.{js,ts,tsx,json,jsonc,yaml,toml,md}":["eslint --fix","git add"],"*.{css,scss}":["stylelint --fix","git add"]}});else if("commit-message"===s){"string"==typeof a&&a.trim()||C("lint commit-message","Commit message is required");const n=await i({extends:["@commitlint/config-conventional"]}),s=await o({edit:a}),c=(await Promise.all(s.map((e=>t(e,n.rules,n.parserPreset?{parserOpts:n.parserPreset.parserOpts}:{}))))).reduce(((e,t)=>(e.valid=!!t.valid&&e.valid,e.errorCount+=t.errors.length,e.warningCount+=t.warnings.length,e.results.push(t),e)),{valid:!0,errorCount:0,warningCount:0,results:[]}),r=e(c);r&&console.log(r),(c.errorCount>0||c.warningCount>0)&&C("lint commit-message","Commit message is invalid, please fix the errors and try again")}else C("lint",`Invalid lint type: ${s}`)})),s.command("init").description("Initialize an empty VEF project").action((async()=>{console.log(n.blue("Welcome to use the cli tool of VEF Framework\n"));const e=await f([{type:"text",name:"appName",message:"What is the name of your app?",validate:e=>"string"==typeof e&&e.trim().length>0||"App name is required"},{type:"text",name:"appTitle",message:"What is the title of your app?",validate:e=>"string"==typeof e&&e.trim().length>0||"App title is required"}]),{appName:t,appTitle:i}=e;await F(m(import.meta.dirname,"../template"),m(j,t)),a.success("Successfully copied template files"),await V(m(j,t,"_gitignore"),m(j,t,".gitignore")),await V(m(j,t,"_tsconfig.json"),m(j,t,"tsconfig.json"));const o=await S(m(j,t,"package.json"),{encoding:"utf-8"});o.name=t,await b(m(j,t,"package.json"),o,{encoding:"utf-8",spaces:2}),a.success("Successfully replaced name and title in package.json");const s=(await k(m(j,t,"env/.env"),{encoding:"utf-8"})).replace(/APP_NAME=.*$/m,`APP_NAME=${t}`).replace(/APP_TITLE=.*$/m,`APP_TITLE=${i}`);await E(m(j,t,"env/.env"),s),a.success("Successfully replaced name and title in .env file");const r=d("Initializing git repository...").start();try{await(c`git --version`),await(c({cwd:m(j,t)})`git init`),r.succeed("Successfully initialized git repository")}catch(e){r.fail("Failed to initialize git repository"),C("init",e)}r.start("Installing dependencies...");try{const e=await _();await c({cwd:m(j,t)})("pnpm",["install",...e.flatMap((e=>["--public-hoist-pattern",e]))]),r.succeed("Successfully installed dependencies")}catch(e){r.fail("Failed to install dependencies"),C("init",e)}a.success(n.green("\nššš VEF project created successfully !")),console.log(n.blue("\n⨠Next steps:")),console.log(n.cyan(` cd ${t}`)),console.log(n.cyan(" pnpm dev"))})),s.parse();
|
|
3
3
|
/*! 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/es/commitlint-config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
function t(){return{extends:["@commitlint/config-conventional"],formatter:"@commitlint/format"}}export{t as defineCommitlintConfig};
|
|
3
3
|
/*! 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/es/config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import o from"consola";import i from"fs-extra";import{resolve as r}from"node:path";import{defineConfig as t,loadEnv as n}from"vite";import{ENV_DIR as p,ENV_BUILD_PREFIX as s}from"./constants.js";import{createAppConfigPlugin as m}from"./plugin-app-config.js";import{createConventionalConfigPlugin as e}from"./plugin-conventional-config.js";import{createEslintPlugin as a}from"./plugin-eslint.js";import{createHtmlPlugin as f}from"./plugin-html.js";import{createIconsPlugin as u}from"./plugin-icons.js";import{createInjectionPlugin as l}from"./plugin-injection.js";import{createInspectPlugin as c}from"./plugin-inspect.js";import{createReactSwcPlugin as g}from"./plugin-react-swc.js";import{createRouterPlugin as j}from"./plugin-router.js";import{createStylelintPlugin as _}from"./plugin-stylelint.js";import{createSvgrPlugin as P}from"./plugin-svgr.js";import{createTailwindcssPlugin as D}from"./plugin-tailwindcss.js";import{createTsconfigPathsPlugin as E}from"./plugin-tsconfig-paths.js";import{createVisualizerPlugin as U}from"./plugin-visualizer.js";import{createWebfontPlugin as b}from"./plugin-webfont.js";const{readJson:B}=i;function I({projectDir:i,proxies:I}){return t((async({mode:t})=>{const d=n(t,p,s);Object.keys(d).length>0&&(o.info("Loaded environment variables:"),console.table(d));const v=await async function(o){const i=await B(r(o,"package.json"),{encoding:"utf-8"});return i.version}(i);return{plugins:[c(),e({appVersion:v,projectDir:i,basePublicPath:d.VEF_BUILD_BASE_PUBLIC_PATH,outputDir:d.VEF_BUILD_OUTPUT_DIR,serverPort:Number(d.VEF_BUILD_SERVER_PORT),proxies:I}),g(),E(i),f(),D(),l(),m({basePublicPath:d.VEF_BUILD_BASE_PUBLIC_PATH,outputDir:d.VEF_BUILD_OUTPUT_DIR,appName:d.VEF_APP_NAME}),u(i),P(),b(),j(i),a(),_(),U(i)]}}))}export{I as defineConfig};
|
|
3
3
|
/*! 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/es/constants.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
const s="public",e="env",t="assets",r="VEF_APP_",P="VEF_BUILD_",_="src",c="dist",o=3833,p="APP",a="pages",i="router";export{t as ASSETS_DIR,p as DEFAULT_APP_NAME,c as DEFAULT_OUTPUT_DIR,o as DEFAULT_SERVER_PORT,r as ENV_APP_PREFIX,P as ENV_BUILD_PREFIX,e as ENV_DIR,a as PAGES_DIR,s as PUBLIC_DIR,i as ROUTER_DIR,_ as SRC_DIR};
|
|
3
3
|
/*! 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/es/eslint-config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import{antfu as r}from"@antfu/eslint-config";import e from"@tanstack/eslint-plugin-router";import o from"eslint-plugin-tailwindcss";function n(){return r({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"])}export{n as defineEslintConfig};
|
|
3
3
|
/*! 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/es/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
export{defineCommitlintConfig}from"./commitlint-config.js";export{defineConfig}from"./config.js";export{defineEslintConfig}from"./eslint-config.js";export{defineStylelintConfig}from"./stylelint-config.js";export{defineTailwindConfig}from"./tailwind-config.js";
|
|
3
3
|
/*! 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/es/modules.d.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
/*! 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/es/plugin-app-config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import{snake as e}from"radashi";import i from"unplugin-config/vite";import{DEFAULT_OUTPUT_DIR as n,ENV_APP_PREFIX as t,DEFAULT_APP_NAME as p}from"./constants.js";function a({basePublicPath:a,outputDir:o,appName:r=p}){return i({appName:`VEF_${m=r,e(m).toUpperCase()}`,baseDir:a,configFile:{generate:!0,fileName:"app.config.js",outputDir:o??n},htmlInjection:{enable:!0,position:"head-prepend",templates:["index.html"]},envVariables:{prefix:t,files:["env/.env","env/.env.production"]}});var m}export{a as createAppConfigPlugin};
|
|
3
3
|
/*! 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,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import e from"autoprefixer";import{resolve as r}from"node:path";import n from"node:process";import o from"tailwindcss";import{ENV_DIR as s,ENV_BUILD_PREFIX as t,ENV_APP_PREFIX as i,DEFAULT_APP_NAME as a,SRC_DIR as c,DEFAULT_OUTPUT_DIR as m,ASSETS_DIR as p,DEFAULT_SERVER_PORT as f}from"./constants.js";function l({appName:l,appVersion:u,basePublicPath:_,projectDir:v,outputDir:d,serverPort:h,proxies:k}){return{name:"vef-framework:conventional-config",config(F,{command:O}){const g="serve"===O;return{appType:"spa",root:v,base:_,publicDir:"public",envDir:s,envPrefix:[t,i],define:{__VEF_FRAMEWORK_VERSION__:`"${n.env.VEF_FRAMEWORK_VERSION}"`,__VEF_APP_VERSION__:`"${u}"`,__VEF_APP_CONFIG__:g?`\n (function () {\n const env = import.meta.env;\n const config = Object.keys(env).filter(key => key.startsWith(${JSON.stringify(i)}))\n .reduce((acc, key) => {\n acc[key] = env[key];\n return acc;\n }, {});\n return Object.freeze(config);\n })()\n `:`window.__PRODUCTION__VEF_${l??a}__CONF__`},resolve:{alias:{"@":c}},css:{modules:{scopeBehaviour:"local",localsConvention:"camelCase"},postcss:{plugins:[o({config:r(v,"tailwind.config.js")}),e()]}},optimizeDeps:{include:["react","react-dom"]},esbuild:{target:"es2023",drop:["console","debugger"]},build:{outDir:d??m,target:"modules",assetsDir:p,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}.${u?` App version v${u}.`:""} Built at ${(new Date).toISOString()} */`,chunkFileNames:`${p}/js/[name]-[hash].js`,entryFileNames:`${p}/js/[name]-[hash].js`,assetFileNames:`${p}/[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:h||f,host:!0,open:!0,proxy:k}}}}}export{l as createConventionalConfigPlugin};
|
|
3
3
|
/*! 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/es/plugin-eslint.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import e from"vite-plugin-eslint2";function t(){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})}export{t as createEslintPlugin};
|
|
3
3
|
/*! 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/es/plugin-html.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import{minify as e}from"html-minifier-terser";const 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';function n(){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(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}))}}]}export{n as createHtmlPlugin};
|
|
3
3
|
/*! 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/es/plugin-icons.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import{resolve as o,dirname as t}from"node:path";import{fileURLToPath as e}from"node:url";import l from"unplugin-icons/vite";function r(r){return l({autoInstall:!1,compiler:"jsx",jsx:"react",defaultClass:"inline-block",scale:1.2,collectionsNodeResolvePath:[r,o(t(e(import.meta.url)),"..")]})}export{r as createIconsPlugin};
|
|
3
3
|
/*! 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/es/plugin-injection.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import{basename as t,dirname as n}from"node:path";function r(){return{name:"vef-framework:injection",transform:(r,i)=>"src"===t(n(i))&&t(i).startsWith("main.ts")?`import "vef:tailwind.css";\n${r}`:null}}export{r as createInjectionPlugin};
|
|
3
3
|
/*! 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/es/plugin-inspect.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import i from"vite-plugin-inspect";function t(){return i({dev:!0,build:!1})}export{t as createInspectPlugin};
|
|
3
3
|
/*! 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/es/plugin-react-swc.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import e from"@vitejs/plugin-react-swc";function t(){return e({devTarget:"esnext"})}export{t as createReactSwcPlugin};
|
|
3
3
|
/*! 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/es/plugin-router.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import{TanStackRouterVite as e}from"@tanstack/router-plugin/vite";import{resolve as t}from"node:path";import{SRC_DIR as o,PAGES_DIR as r,ROUTER_DIR as n}from"./constants.js";function i(i){return e({routesDirectory:t(i,o,r),generatedRouteTree:t(i,o,n,"router.gen.ts"),quoteStyle:"double",semicolons:!0,disableTypes:!1,addExtensions:!1,disableLogging:!1,disableManifestGeneration:!1,routeFileIgnorePattern:"components",indexToken:"index",routeToken:"route",enableRouteGeneration:!0,autoCodeSplitting:!0,routeTreeFileHeader:["/* eslint-disable */","// @ts-nocheck","// noinspection JSUnusedGlobalSymbols",'import { createRouter } from "@vef-framework/starter";'],routeTreeFileFooter:["const router = createRouter({\n routeTree,\n});\n",'declare module "@tanstack/react-router" {\n interface Register {\n router: typeof router;\n }\n}\n',"export default router;"]})}export{i as createRouterPlugin};
|
|
3
3
|
/*! 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/es/plugin-stylelint.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import e from"vite-plugin-stylelint";function i(){return e({fix:!0,test:!0,dev:!0,build:!0,cache:!0,cacheLocation:"node_modules/.cache/.stylelintcache",include:["src/**/*.{scss,css}"],exclude:["node_modules","virtual:","vef:"],emitError:!0,emitWarning:!0,emitWarningAsError:!0})}export{i as createStylelintPlugin};
|
|
3
3
|
/*! 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/es/plugin-svgr.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import s from"vite-plugin-svgr";function i(){return s({include:"**/*.svg?react",esbuildOptions:{platform:"browser",minify:!0,jsx:"automatic"},svgrOptions:{plugins:["@svgr/plugin-svgo","@svgr/plugin-jsx"],icon:!1,dimensions:!1,prettier:!0,memo:!0,svgo:!0,ref:!1,typescript:!0,jsxRuntime:"automatic",svgoConfig:{multipass:!0,datauri:"base64",js2svg:{indent:2,pretty:!0},plugins:["preset-default",{name:"prefixIds",params:{prefix:"vef"}},{name:"cleanupIds",params:{force:!0,remove:!0,minify:!0}}]},svgProps:{}}})}export{i as createSvgrPlugin};
|
|
3
3
|
/*! 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/es/plugin-tailwindcss.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
const i="vef:tailwind.css",n=`\0${i}`;function t(){return{name:"vef-framework:tailwindcss",resolveId(t){if(t===i)return n},load(i){if(i===n)return"@tailwind base;\n@tailwind components;\n@tailwind utilities;"}}}export{t as createTailwindcssPlugin};
|
|
3
3
|
/*! 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,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import t from"vite-tsconfig-paths";function o(o){return t({root:o})}export{o as createTsconfigPathsPlugin};
|
|
3
3
|
/*! 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/es/plugin-visualizer.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import{visualizer as i}from"rollup-plugin-visualizer";function t(t){return i({filename:"dist/stats.html",title:"Building Visualizer",projectRoot:t})}export{t as createVisualizerPlugin};
|
|
3
3
|
/*! 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/es/plugin-webfont.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import t from"vite-plugin-webfont-dl";function a(){return t(["https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap","https://fonts.googleapis.com/css2?family=Martian+Mono:wght@100..800&family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap"])}export{a as createWebfontPlugin};
|
|
3
3
|
/*! 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/es/stylelint-config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import e from"stylelint-config-recess-order/groups";function n(){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:[]}]}}}export{n as defineStylelintConfig};
|
|
3
3
|
/*! 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/es/tailwind-config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
import e from"@tailwindcss/container-queries";import r from"tailwindcss/colors.js";function v(){return{content:["src/**/*.{ts,tsx}"],plugins:[e],theme:{colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"var(--vef-color-white)",primary:"var(--vef-color-primary)","primary-hover":"var(--vef-color-primary-hover)","primary-active":"var(--vef-color-primary-active)",success:"var(--vef-color-success)","success-hover":"var(--vef-color-success-hover)","success-active":"var(--vef-color-success-active)",warning:"var(--vef-color-warning)","warning-hover":"var(--vef-color-warning-hover)","warning-active":"var(--vef-color-warning-active)",error:"var(--vef-color-error)","error-hover":"var(--vef-color-error-hover)","error-active":"var(--vef-color-error-active)",info:"var(--vef-color-info)","info-hover":"var(--vef-color-info-hover)","info-active":"var(--vef-color-info-active)",link:"var(--vef-color-link)","link-hover":"var(--vef-color-link-hover)","link-active":"var(--vef-color-link-active)",blue:{DEFAULT:"var(--vef-blue-6)",1:"var(--vef-blue-1)",2:"var(--vef-blue-2)",3:"var(--vef-blue-3)",4:"var(--vef-blue-4)",5:"var(--vef-blue-5)",6:"var(--vef-blue-6)",7:"var(--vef-blue-7)",8:"var(--vef-blue-8)",9:"var(--vef-blue-9)",10:"var(--vef-blue-10)"},purple:{DEFAULT:"var(--vef-purple-6)",1:"var(--vef-purple-1)",2:"var(--vef-purple-2)",3:"var(--vef-purple-3)",4:"var(--vef-purple-4)",5:"var(--vef-purple-5)",6:"var(--vef-purple-6)",7:"var(--vef-purple-7)",8:"var(--vef-purple-8)",9:"var(--vef-purple-9)",10:"var(--vef-purple-10)"},cyan:{DEFAULT:"var(--vef-cyan-6)",1:"var(--vef-cyan-1)",2:"var(--vef-cyan-2)",3:"var(--vef-cyan-3)",4:"var(--vef-cyan-4)",5:"var(--vef-cyan-5)",6:"var(--vef-cyan-6)",7:"var(--vef-cyan-7)",8:"var(--vef-cyan-8)",9:"var(--vef-cyan-9)",10:"var(--vef-cyan-10)"},green:{DEFAULT:"var(--vef-green-6)",1:"var(--vef-green-1)",2:"var(--vef-green-2)",3:"var(--vef-green-3)",4:"var(--vef-green-4)",5:"var(--vef-green-5)",6:"var(--vef-green-6)",7:"var(--vef-green-7)",8:"var(--vef-green-8)",9:"var(--vef-green-9)",10:"var(--vef-green-10)"},magenta:{DEFAULT:"var(--vef-magenta-6)",1:"var(--vef-magenta-1)",2:"var(--vef-magenta-2)",3:"var(--vef-magenta-3)",4:"var(--vef-magenta-4)",5:"var(--vef-magenta-5)",6:"var(--vef-magenta-6)",7:"var(--vef-magenta-7)",8:"var(--vef-magenta-8)",9:"var(--vef-magenta-9)",10:"var(--vef-magenta-10)"},pink:{DEFAULT:"var(--vef-pink-6)",1:"var(--vef-pink-1)",2:"var(--vef-pink-2)",3:"var(--vef-pink-3)",4:"var(--vef-pink-4)",5:"var(--vef-pink-5)",6:"var(--vef-pink-6)",7:"var(--vef-pink-7)",8:"var(--vef-pink-8)",9:"var(--vef-pink-9)",10:"var(--vef-pink-10)"},red:{DEFAULT:"var(--vef-red-6)",1:"var(--vef-red-1)",2:"var(--vef-red-2)",3:"var(--vef-red-3)",4:"var(--vef-red-4)",5:"var(--vef-red-5)",6:"var(--vef-red-6)",7:"var(--vef-red-7)",8:"var(--vef-red-8)",9:"var(--vef-red-9)",10:"var(--vef-red-10)"},orange:{DEFAULT:"var(--vef-orange-6)",1:"var(--vef-orange-1)",2:"var(--vef-orange-2)",3:"var(--vef-orange-3)",4:"var(--vef-orange-4)",5:"var(--vef-orange-5)",6:"var(--vef-orange-6)",7:"var(--vef-orange-7)",8:"var(--vef-orange-8)",9:"var(--vef-orange-9)",10:"var(--vef-orange-10)"},yellow:{DEFAULT:"var(--vef-yellow-6)",1:"var(--vef-yellow-1)",2:"var(--vef-yellow-2)",3:"var(--vef-yellow-3)",4:"var(--vef-yellow-4)",5:"var(--vef-yellow-5)",6:"var(--vef-yellow-6)",7:"var(--vef-yellow-7)",8:"var(--vef-yellow-8)",9:"var(--vef-yellow-9)",10:"var(--vef-yellow-10)"},volcano:{DEFAULT:"var(--vef-volcano-6)",1:"var(--vef-volcano-1)",2:"var(--vef-volcano-2)",3:"var(--vef-volcano-3)",4:"var(--vef-volcano-4)",5:"var(--vef-volcano-5)",6:"var(--vef-volcano-6)",7:"var(--vef-volcano-7)",8:"var(--vef-volcano-8)",9:"var(--vef-volcano-9)",10:"var(--vef-volcano-10)"},geekblue:{DEFAULT:"var(--vef-geekblue-6)",1:"var(--vef-geekblue-1)",2:"var(--vef-geekblue-2)",3:"var(--vef-geekblue-3)",4:"var(--vef-geekblue-4)",5:"var(--vef-geekblue-5)",6:"var(--vef-geekblue-6)",7:"var(--vef-geekblue-7)",8:"var(--vef-geekblue-8)",9:"var(--vef-geekblue-9)",10:"var(--vef-geekblue-10)"},gold:{DEFAULT:"var(--vef-gold-6)",1:"var(--vef-gold-1)",2:"var(--vef-gold-2)",3:"var(--vef-gold-3)",4:"var(--vef-gold-4)",5:"var(--vef-gold-5)",6:"var(--vef-gold-6)",7:"var(--vef-gold-7)",8:"var(--vef-gold-8)",9:"var(--vef-gold-9)",10:"var(--vef-gold-10)"},lime:{DEFAULT:"var(--vef-lime-6)",1:"var(--vef-lime-1)",2:"var(--vef-lime-2)",3:"var(--vef-lime-3)",4:"var(--vef-lime-4)",5:"var(--vef-lime-5)",6:"var(--vef-lime-6)",7:"var(--vef-lime-7)",8:"var(--vef-lime-8)",9:"var(--vef-lime-9)",10:"var(--vef-lime-10)"},slate:{DEFAULT:r.slate[500],1:r.slate[50],2:r.slate[100],3:r.slate[200],4:r.slate[300],5:r.slate[400],6:r.slate[500],7:r.slate[600],8:r.slate[700],9:r.slate[800],10:r.slate[900]}},extend:{textColor:{"primary-alt":"var(--vef-color-primary-text)","primary-alt-hover":"var(--vef-color-primary-text-hover)","primary-alt-active":"var(--vef-color-primary-text-active)","success-alt":"var(--vef-color-success-text)","success-alt-hover":"var(--vef-color-success-text-hover)","success-alt-active":"var(--vef-color-success-text-active)","warning-alt":"var(--vef-color-warning-text)","warning-alt-hover":"var(--vef-color-warning-text-hover)","warning-alt-active":"var(--vef-color-warning-text-active)","error-alt":"var(--vef-color-error-text)","error-alt-hover":"var(--vef-color-error-text-hover)","error-alt-active":"var(--vef-color-error-text-active)","info-alt":"var(--vef-color-info-text)","info-alt-hover":"var(--vef-color-info-text-hover)","info-alt-active":"var(--vef-color-info-text-active)",base:"var(--vef-color-text-base)",default:"var(--vef-color-text)",secondary:"var(--vef-color-text-secondary)",tertiary:"var(--vef-color-text-tertiary)",quaternary:"var(--vef-color-text-quaternary)",placeholder:"var(--vef-color-text-placeholder)",disabled:"var(--vef-color-text-disabled)",heading:"var(--vef-color-text-heading)",label:"var(--vef-color-text-label)",description:"var(--vef-color-text-description)","light-solid":"var(--vef-color-text-light-solid)",highlight:"var(--vef-color-highlight)",icon:"var(--vef-color-icon)","icon-hover":"var(--vef-color-icon-hover)"},outlineColor:{error:"var(--vef-color-error-outline)",warning:"var(--vef-color-warning-outline)"},backgroundColor:{"primary-alt":"var(--vef-color-primary-bg)","primary-alt-hover":"var(--vef-color-primary-bg-hover)","success-alt":"var(--vef-color-success-bg)","success-alt-hover":"var(--vef-color-success-bg-hover)","warning-alt":"var(--vef-color-warning-bg)","warning-alt-hover":"var(--vef-color-warning-bg-hover)","error-alt":"var(--vef-color-error-bg)","error-alt-hover":"var(--vef-color-error-bg-hover)","info-alt":"var(--vef-color-info-bg)","info-alt-hover":"var(--vef-color-info-bg-hover)",base:"var(--vef-color-bg-base)",layout:"var(--vef-color-bg-layout)",spotlight:"var(--vef-color-bg-spotlight)",solid:"var(--vef-color-bg-solid)","solid-hover":"var(--vef-color-bg-solid-hover)","solid-active":"var(--vef-color-bg-solid-active)",container:"var(--vef-color-bg-container)","container-disabled":"var(--vef-color-bg-container-disabled)",elevated:"var(--vef-color-bg-elevated)",blur:"var(--vef-color-bg-blur)",fill:"var(--vef-color-fill)","fill-secondary":"var(--vef-color-fill-secondary)","fill-tertiary":"var(--vef-color-fill-tertiary)","fill-quaternary":"var(--vef-color-fill-quaternary)","fill-content":"var(--vef-color-fill-content)","fill-content-hover":"var(--vef-color-fill-content-hover)","fill-alt":"var(--vef-color-fill-alter)",mask:"var(--vef-color-bg-mask)","text-hover":"var(--vef-color-bg-text-hover)","text-active":"var(--vef-color-bg-text-active)","control-item-hover":"var(--vef-control-item-bg-hover)","control-item-active":"var(--vef-control-item-bg-active)","control-item-active-hover":"var(--vef-control-item-bg-active-hover)","control-item-active-disabled":"var(--vef-control-item-bg-active-disabled)"},borderColor:{"primary-alt":"var(--vef-color-primary-border)","primary-alt-hover":"var(--vef-color-primary-border-hover)","success-alt":"var(--vef-color-success-border)","success-alt-hover":"var(--vef-color-success-border-hover)","warning-alt":"var(--vef-color-warning-border)","warning-alt-hover":"var(--vef-color-warning-border-hover)","error-alt":"var(--vef-color-error-border)","error-alt-hover":"var(--vef-color-error-border-hover)","info-alt":"var(--vef-color-info-border)","info-alt-hover":"var(--vef-color-info-border-hover)",base:"var(--vef-color-border)",secondary:"var(--vef-color-border-secondary)"},fontFamily:{base:"var(--vef-font-family)",code:"var(--vef-font-family-code)"},fontSize:{base:"var(--vef-font-size)",sm:"var(--vef-font-size-sm)",lg:"var(--vef-font-size-lg)",xl:"var(--vef-font-size-xl)",heading1:"var(--vef-font-size-heading-1)",heading2:"var(--vef-font-size-heading-2)",heading3:"var(--vef-font-size-heading-3)",heading4:"var(--vef-font-size-heading-4)",heading5:"var(--vef-font-size-heading-5)"},fontWeight:{strong:"var(--vef-font-weight-strong)"},borderWidth:{base:"var(--vef-line-width)",bold:"var(--vef-line-width-bold)"},borderRadius:{DEFAULT:"var(--vef-border-radius)",xs:"var(--vef-border-radius-xs)",sm:"var(--vef-border-radius-sm)",lg:"var(--vef-border-radius-lg)",outer:"var(--vef-border-radius-outer)"},height:{control:"var(--vef-control-height)","control-sm":"var(--vef-control-height-sm)","control-xs":"var(--vef-control-height-xs)","control-lg":"var(--vef-control-height-lg)",font:"var(--vef-font-height)","font-sm":"var(--vef-font-height-sm)","font-lg":"var(--vef-font-height-lg)"},lineHeight:{base:"var(--vef-line-height)",sm:"var(--vef-line-height-sm)",lg:"var(--vef-line-height-lg)","heading-1":"var(--vef-line-height-heading-1)","heading-2":"var(--vef-line-height-heading-2)","heading-3":"var(--vef-line-height-heading-3)","heading-4":"var(--vef-line-height-heading-4)","heading-5":"var(--vef-line-height-heading-5)"},spacing:{base:"var(--vef-margin)",xxs:"var(--vef-margin-xxs)",xs:"var(--vef-margin-xs)",sm:"var(--vef-margin-sm)",md:"var(--vef-margin-md)",lg:"var(--vef-margin-lg)",xl:"var(--vef-margin-xl)",xxl:"var(--vef-margin-xxl)"},boxShadow:{base:"var(--vef-box-shadow)",secondary:"var(--vef-box-shadow-secondary)",tertiary:"var(--vef-box-shadow-tertiary)",card:"var(--vef-box-shadow-card)",elevated:"0 0 1px rgb(0 0 0 / 30%), 0 4px 14px rgb(0 0 0 / 10%)"},transitionDuration:{fast:"var(--vef-motion-duration-fast)",mid:"var(--vef-motion-duration-mid)",slow:"var(--vef-motion-duration-slow)"},transitionTimingFunction:{"ease-out-circ":"var(--vef-motion-ease-out-circ)","ease-in-out-circ":"var(--vef-motion-ease-in-out-circ)","ease-out":"var(--vef-motion-ease-out)","ease-in-out":"var(--vef-motion-ease-in-out)","ease-out-back":"var(--vef-motion-ease-out-back)","ease-in-back":"var(--vef-motion-ease-in-back)","ease-in-quint":"var(--vef-motion-ease-in-quint)","ease-out-quint":"var(--vef-motion-ease-out-quint)"},zIndex:{base:"var(--vef-z-index-base)",popup:"var(--vef-z-index-popup)"}}}}}export{v as defineTailwindConfig};
|
|
3
3
|
/*! 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/cli.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";const e=require("@commitlint/format"),t=require("@commitlint/lint"),i=require("@commitlint/load"),o=require("@commitlint/read"),s=require("chalk"),n=require("commander"),r=require("consola"),a=require("execa"),c=require("fs-extra"),l=require("lint-staged"),p=require("node:path"),m=require("node:process"),d=require("ora"),u=require("prompts"),g=require("vite"),{exists:f,readJsonSync:v,writeFile:y,readJson:w,writeJson:h,copy:E,readFile:F,move:S}=c,b=m.cwd();const k=function(){const e=p.resolve(void 0,"../package.json");return v(e,{encoding:"utf-8"}).version}();async function q(){return(await import("../bin/hoist-patterns.js")).default}function x(e,t){return t||("build"===e?"production":"development")}async function V(e,t,i){const o=p.resolve(b,e||"vef.config.ts");if(!await f(o))throw r.error(`Config file not found: ${o}, it is required for VEF Framework`),new Error(`Config file not found: ${o}`);const s=await g.loadConfigFromFile({command:t,mode:i},o);return s?.config??{}}function j(e,t){r.error(`Error during ${e}:`,t),m.exit(1)}n.program.name("vef").description(s.magenta("VEF Framework CLI")).addHelpText("before",s.blue("VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus.")).addHelpText("before",s.bgGreenBright(`Version: ${k}`)).version(k).option("--mode <mode>","Specify running mode (will override default NODE_ENV)"),n.program.command("dev").description("Start dev server").option("-c, --config <file>","Specify vef config file","vef.config.ts").action((async e=>{try{const t=x("serve",n.program.opts().mode);m.env.NODE_ENV=t,m.env.VEF_FRAMEWORK_VERSION=k;const i=await V(e.config,"serve",t),o=await g.createServer({...i,mode:t,configFile:!1,logLevel:"info"});await o.listen(),o.printUrls(),o.bindCLIShortcuts({print:!0})}catch(e){j("dev server startup",e)}})),n.program.command("build").description("Build for production").option("-c, --config <file>","Specify vef config file","vef.config.ts").action((async e=>{try{const t=x("build",n.program.opts().mode);m.env.NODE_ENV=t,m.env.VEF_FRAMEWORK_VERSION=k;const i=await V(e.config,"build",t);await g.build({...i,mode:t,configFile:!1,logLevel:"info"}),r.success("Build completed successfully!")}catch(e){j("build",e)}})),n.program.command("preview").description("Preview the build").option("-c, --config <file>","Specify vef config file","vef.config.ts").action((async e=>{try{const t=x("build",n.program.opts().mode);m.env.NODE_ENV=t,m.env.VEF_FRAMEWORK_VERSION=k;const i=await V(e.config,"build",t),o=await g.preview({...i,mode:t,configFile:!1,logLevel:"info"});o.printUrls(),o.bindCLIShortcuts({print:!0})}catch(e){j("preview server startup",e)}})),n.program.command("prepare").description("Sets up the project for development mode").action((async()=>{await f(p.resolve(b,".husky"))||((await import("husky")).default(),r.success("Successfully set up husky")),await f(p.resolve(b,".husky/pre-commit"))||(await y(p.resolve(b,".husky/pre-commit"),"pnpm lint -t code"),r.success("Successfully set up pre-commit hook")),await f(p.resolve(b,".husky/commit-msg"))||(await y(p.resolve(b,".husky/commit-msg"),"pnpm lint -t commit-message -m $1"),r.success("Successfully set up commit-msg hook"));const e=await w(p.resolve(b,"package.json"),{encoding:"utf-8"}),{scripts:t}=e;let i=!1;t.prepare||(t.prepare="vef prepare",i=!0),i&&(await h(p.resolve(b,"package.json"),e,{encoding:"utf-8",spaces:2}),r.success("Successfully set up prepare script and lint-staged"))})),n.program.command("install").description("Install the dependencies of the project").action((async()=>{const e=await q();await a.execa({cwd:b,stdio:"inherit"})("pnpm",["install",...e.flatMap((e=>["--public-hoist-pattern",e]))])})),n.program.command("lint").description("Run lint-staged for the project").option("-t, --type <type>","Specify the type(code/commit-message) of linting to run","code").option("-m, --message <message>","Specify the commit message").action((async s=>{const{type:n,message:r}=s;if("code"===n)await l({cwd:b,concurrent:!0,config:{"*.{js,ts,tsx,json,jsonc,yaml,toml,md}":["eslint --fix","git add"],"*.{css,scss}":["stylelint --fix","git add"]}});else if("commit-message"===n){"string"==typeof r&&r.trim()||j("lint commit-message","Commit message is required");const s=await i({extends:["@commitlint/config-conventional"]}),n=await o({edit:r}),a=(await Promise.all(n.map((e=>t(e,s.rules,s.parserPreset?{parserOpts:s.parserPreset.parserOpts}:{}))))).reduce(((e,t)=>(e.valid=!!t.valid&&e.valid,e.errorCount+=t.errors.length,e.warningCount+=t.warnings.length,e.results.push(t),e)),{valid:!0,errorCount:0,warningCount:0,results:[]}),c=e(a);c&&console.log(c),(a.errorCount>0||a.warningCount>0)&&j("lint commit-message","Commit message is invalid, please fix the errors and try again")}else j("lint",`Invalid lint type: ${n}`)})),n.program.command("init").description("Initialize an empty VEF project").action((async()=>{console.log(s.blue("Welcome to use the cli tool of VEF Framework\n"));const e=await u([{type:"text",name:"appName",message:"What is the name of your app?",validate:e=>"string"==typeof e&&e.trim().length>0||"App name is required"},{type:"text",name:"appTitle",message:"What is the title of your app?",validate:e=>"string"==typeof e&&e.trim().length>0||"App title is required"}]),{appName:t,appTitle:i}=e;await E(p.resolve(void 0,"../template"),p.resolve(b,t)),r.success("Successfully copied template files"),await S(p.resolve(b,t,"_gitignore"),p.resolve(b,t,".gitignore")),await S(p.resolve(b,t,"_tsconfig.json"),p.resolve(b,t,"tsconfig.json"));const o=await w(p.resolve(b,t,"package.json"),{encoding:"utf-8"});o.name=t,await h(p.resolve(b,t,"package.json"),o,{encoding:"utf-8",spaces:2}),r.success("Successfully replaced name and title in package.json");const n=(await F(p.resolve(b,t,"env/.env"),{encoding:"utf-8"})).replace(/APP_NAME=.*$/m,`APP_NAME=${t}`).replace(/APP_TITLE=.*$/m,`APP_TITLE=${i}`);await y(p.resolve(b,t,"env/.env"),n),r.success("Successfully replaced name and title in .env file");const c=d("Initializing git repository...").start();try{await(a.execa`git --version`),await(a.execa({cwd:p.resolve(b,t)})`git init`),c.succeed("Successfully initialized git repository")}catch(e){c.fail("Failed to initialize git repository"),j("init",e)}c.start("Installing dependencies...");try{const e=await q();await a.execa({cwd:p.resolve(b,t)})("pnpm",["install",...e.flatMap((e=>["--public-hoist-pattern",e]))]),c.succeed("Successfully installed dependencies")}catch(e){c.fail("Failed to install dependencies"),j("init",e)}r.success(s.green("\nššš VEF project created successfully !")),console.log(s.blue("\n⨠Next steps:")),console.log(s.cyan(` cd ${t}`)),console.log(s.cyan(" pnpm dev"))})),n.program.parse();
|
|
3
3
|
/*! 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,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),exports.defineCommitlintConfig=function(){return{extends:["@commitlint/config-conventional"],formatter:"@commitlint/format"}};
|
|
3
3
|
/*! 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/config.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("consola"),i=require("fs-extra"),n=require("node:path"),r=require("vite"),t=require("./constants.cjs"),u=require("./plugin-app-config.cjs"),c=require("./plugin-conventional-config.cjs"),s=require("./plugin-eslint.cjs"),l=require("./plugin-html.cjs"),o=require("./plugin-icons.cjs"),a=require("./plugin-injection.cjs"),g=require("./plugin-inspect.cjs"),p=require("./plugin-react-swc.cjs"),P=require("./plugin-router.cjs"),j=require("./plugin-stylelint.cjs"),_=require("./plugin-svgr.cjs"),q=require("./plugin-tailwindcss.cjs"),f=require("./plugin-tsconfig-paths.cjs"),E=require("./plugin-visualizer.cjs"),I=require("./plugin-webfont.cjs"),{readJson:d}=i;exports.defineConfig=function({projectDir:i,proxies:v}){return r.defineConfig((async({mode:D})=>{const b=r.loadEnv(D,t.ENV_DIR,t.ENV_BUILD_PREFIX);Object.keys(b).length>0&&(e.info("Loaded environment variables:"),console.table(b));const U=await async function(e){const i=await d(n.resolve(e,"package.json"),{encoding:"utf-8"});return i.version}(i);return{plugins:[g.createInspectPlugin(),c.createConventionalConfigPlugin({appVersion:U,projectDir:i,basePublicPath:b.VEF_BUILD_BASE_PUBLIC_PATH,outputDir:b.VEF_BUILD_OUTPUT_DIR,serverPort:Number(b.VEF_BUILD_SERVER_PORT),proxies:v}),p.createReactSwcPlugin(),f.createTsconfigPathsPlugin(i),l.createHtmlPlugin(),q.createTailwindcssPlugin(),a.createInjectionPlugin(),u.createAppConfigPlugin({basePublicPath:b.VEF_BUILD_BASE_PUBLIC_PATH,outputDir:b.VEF_BUILD_OUTPUT_DIR,appName:b.VEF_APP_NAME}),o.createIconsPlugin(i),_.createSvgrPlugin(),I.createWebfontPlugin(),P.createRouterPlugin(i),s.createEslintPlugin(),j.createStylelintPlugin(),E.createVisualizerPlugin(i)]}}))};
|
|
3
3
|
/*! 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/constants.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.ASSETS_DIR="assets",exports.DEFAULT_APP_NAME="APP",exports.DEFAULT_OUTPUT_DIR="dist",exports.DEFAULT_SERVER_PORT=3833,exports.ENV_APP_PREFIX="VEF_APP_",exports.ENV_BUILD_PREFIX="VEF_BUILD_",exports.ENV_DIR="env",exports.PAGES_DIR="pages",exports.PUBLIC_DIR="public",exports.ROUTER_DIR="router",exports.SRC_DIR="src";
|
|
3
3
|
/*! 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/eslint-config.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
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"])};
|
|
3
3
|
/*! 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,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
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;
|
|
3
3
|
/*! 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,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*! 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,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
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};
|
|
3
3
|
/*! 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,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
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}}}}};
|
|
3
3
|
/*! 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/plugin-eslint.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
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})};
|
|
3
3
|
/*! 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/plugin-html.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
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(){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}))}}]};
|
|
3
3
|
/*! 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/plugin-icons.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
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(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)),"..")]})};
|
|
3
3
|
/*! 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/plugin-injection.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("node:path");exports.createInjectionPlugin=function(){return{name:"vef-framework:injection",transform:(t,n)=>"src"===e.basename(e.dirname(n))&&e.basename(n).startsWith("main.ts")?`import "vef:tailwind.css";\n${t}`:null}};
|
|
3
3
|
/*! 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/plugin-inspect.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vite-plugin-inspect");exports.createInspectPlugin=function(){return e({dev:!0,build:!1})};
|
|
3
3
|
/*! 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/plugin-react-swc.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@vitejs/plugin-react-swc");exports.createReactSwcPlugin=function(){return e({devTarget:"esnext"})};
|
|
3
3
|
/*! 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/plugin-router.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
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(o){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:!0,routeTreeFileHeader:["/* eslint-disable */","// @ts-nocheck","// noinspection JSUnusedGlobalSymbols",'import { createRouter } from "@vef-framework/starter";'],routeTreeFileFooter:["const router = createRouter({\n routeTree,\n});\n",'declare module "@tanstack/react-router" {\n interface Register {\n router: typeof router;\n }\n}\n',"export default router;"]})};
|
|
3
3
|
/*! 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/plugin-stylelint.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vite-plugin-stylelint");exports.createStylelintPlugin=function(){return e({fix:!0,test:!0,dev:!0,build:!0,cache:!0,cacheLocation:"node_modules/.cache/.stylelintcache",include:["src/**/*.{scss,css}"],exclude:["node_modules","virtual:","vef:"],emitError:!0,emitWarning:!0,emitWarningAsError:!0})};
|
|
3
3
|
/*! 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/plugin-svgr.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vite-plugin-svgr");exports.createSvgrPlugin=function(){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:{}}})};
|
|
3
3
|
/*! 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,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="vef:tailwind.css",i=`\0${e}`;exports.createTailwindcssPlugin=function(){return{name:"vef-framework:tailwindcss",resolveId(t){if(t===e)return i},load(e){if(e===i)return"@tailwind base;\n@tailwind components;\n@tailwind utilities;"}}};
|
|
3
3
|
/*! 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,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vite-tsconfig-paths");exports.createTsconfigPathsPlugin=function(e){return t({root:e})};
|
|
3
3
|
/*! 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,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("rollup-plugin-visualizer");exports.createVisualizerPlugin=function(i){return e.visualizer({filename:"dist/stats.html",title:"Building Visualizer",projectRoot:i})};
|
|
3
3
|
/*! 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/plugin-webfont.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vite-plugin-webfont-dl");exports.createWebfontPlugin=function(){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"])};
|
|
3
3
|
/*! 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/stylelint-config.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("stylelint-config-recess-order/groups");exports.defineStylelintConfig=function(){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:[]}]}}};
|
|
3
3
|
/*! 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/tailwind-config.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@tailwindcss/container-queries"),r=require("tailwindcss/colors.js");exports.defineTailwindConfig=function(){return{content:["src/**/*.{ts,tsx}"],plugins:[e],theme:{colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"var(--vef-color-white)",primary:"var(--vef-color-primary)","primary-hover":"var(--vef-color-primary-hover)","primary-active":"var(--vef-color-primary-active)",success:"var(--vef-color-success)","success-hover":"var(--vef-color-success-hover)","success-active":"var(--vef-color-success-active)",warning:"var(--vef-color-warning)","warning-hover":"var(--vef-color-warning-hover)","warning-active":"var(--vef-color-warning-active)",error:"var(--vef-color-error)","error-hover":"var(--vef-color-error-hover)","error-active":"var(--vef-color-error-active)",info:"var(--vef-color-info)","info-hover":"var(--vef-color-info-hover)","info-active":"var(--vef-color-info-active)",link:"var(--vef-color-link)","link-hover":"var(--vef-color-link-hover)","link-active":"var(--vef-color-link-active)",blue:{DEFAULT:"var(--vef-blue-6)",1:"var(--vef-blue-1)",2:"var(--vef-blue-2)",3:"var(--vef-blue-3)",4:"var(--vef-blue-4)",5:"var(--vef-blue-5)",6:"var(--vef-blue-6)",7:"var(--vef-blue-7)",8:"var(--vef-blue-8)",9:"var(--vef-blue-9)",10:"var(--vef-blue-10)"},purple:{DEFAULT:"var(--vef-purple-6)",1:"var(--vef-purple-1)",2:"var(--vef-purple-2)",3:"var(--vef-purple-3)",4:"var(--vef-purple-4)",5:"var(--vef-purple-5)",6:"var(--vef-purple-6)",7:"var(--vef-purple-7)",8:"var(--vef-purple-8)",9:"var(--vef-purple-9)",10:"var(--vef-purple-10)"},cyan:{DEFAULT:"var(--vef-cyan-6)",1:"var(--vef-cyan-1)",2:"var(--vef-cyan-2)",3:"var(--vef-cyan-3)",4:"var(--vef-cyan-4)",5:"var(--vef-cyan-5)",6:"var(--vef-cyan-6)",7:"var(--vef-cyan-7)",8:"var(--vef-cyan-8)",9:"var(--vef-cyan-9)",10:"var(--vef-cyan-10)"},green:{DEFAULT:"var(--vef-green-6)",1:"var(--vef-green-1)",2:"var(--vef-green-2)",3:"var(--vef-green-3)",4:"var(--vef-green-4)",5:"var(--vef-green-5)",6:"var(--vef-green-6)",7:"var(--vef-green-7)",8:"var(--vef-green-8)",9:"var(--vef-green-9)",10:"var(--vef-green-10)"},magenta:{DEFAULT:"var(--vef-magenta-6)",1:"var(--vef-magenta-1)",2:"var(--vef-magenta-2)",3:"var(--vef-magenta-3)",4:"var(--vef-magenta-4)",5:"var(--vef-magenta-5)",6:"var(--vef-magenta-6)",7:"var(--vef-magenta-7)",8:"var(--vef-magenta-8)",9:"var(--vef-magenta-9)",10:"var(--vef-magenta-10)"},pink:{DEFAULT:"var(--vef-pink-6)",1:"var(--vef-pink-1)",2:"var(--vef-pink-2)",3:"var(--vef-pink-3)",4:"var(--vef-pink-4)",5:"var(--vef-pink-5)",6:"var(--vef-pink-6)",7:"var(--vef-pink-7)",8:"var(--vef-pink-8)",9:"var(--vef-pink-9)",10:"var(--vef-pink-10)"},red:{DEFAULT:"var(--vef-red-6)",1:"var(--vef-red-1)",2:"var(--vef-red-2)",3:"var(--vef-red-3)",4:"var(--vef-red-4)",5:"var(--vef-red-5)",6:"var(--vef-red-6)",7:"var(--vef-red-7)",8:"var(--vef-red-8)",9:"var(--vef-red-9)",10:"var(--vef-red-10)"},orange:{DEFAULT:"var(--vef-orange-6)",1:"var(--vef-orange-1)",2:"var(--vef-orange-2)",3:"var(--vef-orange-3)",4:"var(--vef-orange-4)",5:"var(--vef-orange-5)",6:"var(--vef-orange-6)",7:"var(--vef-orange-7)",8:"var(--vef-orange-8)",9:"var(--vef-orange-9)",10:"var(--vef-orange-10)"},yellow:{DEFAULT:"var(--vef-yellow-6)",1:"var(--vef-yellow-1)",2:"var(--vef-yellow-2)",3:"var(--vef-yellow-3)",4:"var(--vef-yellow-4)",5:"var(--vef-yellow-5)",6:"var(--vef-yellow-6)",7:"var(--vef-yellow-7)",8:"var(--vef-yellow-8)",9:"var(--vef-yellow-9)",10:"var(--vef-yellow-10)"},volcano:{DEFAULT:"var(--vef-volcano-6)",1:"var(--vef-volcano-1)",2:"var(--vef-volcano-2)",3:"var(--vef-volcano-3)",4:"var(--vef-volcano-4)",5:"var(--vef-volcano-5)",6:"var(--vef-volcano-6)",7:"var(--vef-volcano-7)",8:"var(--vef-volcano-8)",9:"var(--vef-volcano-9)",10:"var(--vef-volcano-10)"},geekblue:{DEFAULT:"var(--vef-geekblue-6)",1:"var(--vef-geekblue-1)",2:"var(--vef-geekblue-2)",3:"var(--vef-geekblue-3)",4:"var(--vef-geekblue-4)",5:"var(--vef-geekblue-5)",6:"var(--vef-geekblue-6)",7:"var(--vef-geekblue-7)",8:"var(--vef-geekblue-8)",9:"var(--vef-geekblue-9)",10:"var(--vef-geekblue-10)"},gold:{DEFAULT:"var(--vef-gold-6)",1:"var(--vef-gold-1)",2:"var(--vef-gold-2)",3:"var(--vef-gold-3)",4:"var(--vef-gold-4)",5:"var(--vef-gold-5)",6:"var(--vef-gold-6)",7:"var(--vef-gold-7)",8:"var(--vef-gold-8)",9:"var(--vef-gold-9)",10:"var(--vef-gold-10)"},lime:{DEFAULT:"var(--vef-lime-6)",1:"var(--vef-lime-1)",2:"var(--vef-lime-2)",3:"var(--vef-lime-3)",4:"var(--vef-lime-4)",5:"var(--vef-lime-5)",6:"var(--vef-lime-6)",7:"var(--vef-lime-7)",8:"var(--vef-lime-8)",9:"var(--vef-lime-9)",10:"var(--vef-lime-10)"},slate:{DEFAULT:r.slate[500],1:r.slate[50],2:r.slate[100],3:r.slate[200],4:r.slate[300],5:r.slate[400],6:r.slate[500],7:r.slate[600],8:r.slate[700],9:r.slate[800],10:r.slate[900]}},extend:{textColor:{"primary-alt":"var(--vef-color-primary-text)","primary-alt-hover":"var(--vef-color-primary-text-hover)","primary-alt-active":"var(--vef-color-primary-text-active)","success-alt":"var(--vef-color-success-text)","success-alt-hover":"var(--vef-color-success-text-hover)","success-alt-active":"var(--vef-color-success-text-active)","warning-alt":"var(--vef-color-warning-text)","warning-alt-hover":"var(--vef-color-warning-text-hover)","warning-alt-active":"var(--vef-color-warning-text-active)","error-alt":"var(--vef-color-error-text)","error-alt-hover":"var(--vef-color-error-text-hover)","error-alt-active":"var(--vef-color-error-text-active)","info-alt":"var(--vef-color-info-text)","info-alt-hover":"var(--vef-color-info-text-hover)","info-alt-active":"var(--vef-color-info-text-active)",base:"var(--vef-color-text-base)",default:"var(--vef-color-text)",secondary:"var(--vef-color-text-secondary)",tertiary:"var(--vef-color-text-tertiary)",quaternary:"var(--vef-color-text-quaternary)",placeholder:"var(--vef-color-text-placeholder)",disabled:"var(--vef-color-text-disabled)",heading:"var(--vef-color-text-heading)",label:"var(--vef-color-text-label)",description:"var(--vef-color-text-description)","light-solid":"var(--vef-color-text-light-solid)",highlight:"var(--vef-color-highlight)",icon:"var(--vef-color-icon)","icon-hover":"var(--vef-color-icon-hover)"},outlineColor:{error:"var(--vef-color-error-outline)",warning:"var(--vef-color-warning-outline)"},backgroundColor:{"primary-alt":"var(--vef-color-primary-bg)","primary-alt-hover":"var(--vef-color-primary-bg-hover)","success-alt":"var(--vef-color-success-bg)","success-alt-hover":"var(--vef-color-success-bg-hover)","warning-alt":"var(--vef-color-warning-bg)","warning-alt-hover":"var(--vef-color-warning-bg-hover)","error-alt":"var(--vef-color-error-bg)","error-alt-hover":"var(--vef-color-error-bg-hover)","info-alt":"var(--vef-color-info-bg)","info-alt-hover":"var(--vef-color-info-bg-hover)",base:"var(--vef-color-bg-base)",layout:"var(--vef-color-bg-layout)",spotlight:"var(--vef-color-bg-spotlight)",solid:"var(--vef-color-bg-solid)","solid-hover":"var(--vef-color-bg-solid-hover)","solid-active":"var(--vef-color-bg-solid-active)",container:"var(--vef-color-bg-container)","container-disabled":"var(--vef-color-bg-container-disabled)",elevated:"var(--vef-color-bg-elevated)",blur:"var(--vef-color-bg-blur)",fill:"var(--vef-color-fill)","fill-secondary":"var(--vef-color-fill-secondary)","fill-tertiary":"var(--vef-color-fill-tertiary)","fill-quaternary":"var(--vef-color-fill-quaternary)","fill-content":"var(--vef-color-fill-content)","fill-content-hover":"var(--vef-color-fill-content-hover)","fill-alt":"var(--vef-color-fill-alter)",mask:"var(--vef-color-bg-mask)","text-hover":"var(--vef-color-bg-text-hover)","text-active":"var(--vef-color-bg-text-active)","control-item-hover":"var(--vef-control-item-bg-hover)","control-item-active":"var(--vef-control-item-bg-active)","control-item-active-hover":"var(--vef-control-item-bg-active-hover)","control-item-active-disabled":"var(--vef-control-item-bg-active-disabled)"},borderColor:{"primary-alt":"var(--vef-color-primary-border)","primary-alt-hover":"var(--vef-color-primary-border-hover)","success-alt":"var(--vef-color-success-border)","success-alt-hover":"var(--vef-color-success-border-hover)","warning-alt":"var(--vef-color-warning-border)","warning-alt-hover":"var(--vef-color-warning-border-hover)","error-alt":"var(--vef-color-error-border)","error-alt-hover":"var(--vef-color-error-border-hover)","info-alt":"var(--vef-color-info-border)","info-alt-hover":"var(--vef-color-info-border-hover)",base:"var(--vef-color-border)",secondary:"var(--vef-color-border-secondary)"},fontFamily:{base:"var(--vef-font-family)",code:"var(--vef-font-family-code)"},fontSize:{base:"var(--vef-font-size)",sm:"var(--vef-font-size-sm)",lg:"var(--vef-font-size-lg)",xl:"var(--vef-font-size-xl)",heading1:"var(--vef-font-size-heading-1)",heading2:"var(--vef-font-size-heading-2)",heading3:"var(--vef-font-size-heading-3)",heading4:"var(--vef-font-size-heading-4)",heading5:"var(--vef-font-size-heading-5)"},fontWeight:{strong:"var(--vef-font-weight-strong)"},borderWidth:{base:"var(--vef-line-width)",bold:"var(--vef-line-width-bold)"},borderRadius:{DEFAULT:"var(--vef-border-radius)",xs:"var(--vef-border-radius-xs)",sm:"var(--vef-border-radius-sm)",lg:"var(--vef-border-radius-lg)",outer:"var(--vef-border-radius-outer)"},height:{control:"var(--vef-control-height)","control-sm":"var(--vef-control-height-sm)","control-xs":"var(--vef-control-height-xs)","control-lg":"var(--vef-control-height-lg)",font:"var(--vef-font-height)","font-sm":"var(--vef-font-height-sm)","font-lg":"var(--vef-font-height-lg)"},lineHeight:{base:"var(--vef-line-height)",sm:"var(--vef-line-height-sm)",lg:"var(--vef-line-height-lg)","heading-1":"var(--vef-line-height-heading-1)","heading-2":"var(--vef-line-height-heading-2)","heading-3":"var(--vef-line-height-heading-3)","heading-4":"var(--vef-line-height-heading-4)","heading-5":"var(--vef-line-height-heading-5)"},spacing:{base:"var(--vef-margin)",xxs:"var(--vef-margin-xxs)",xs:"var(--vef-margin-xs)",sm:"var(--vef-margin-sm)",md:"var(--vef-margin-md)",lg:"var(--vef-margin-lg)",xl:"var(--vef-margin-xl)",xxl:"var(--vef-margin-xxl)"},boxShadow:{base:"var(--vef-box-shadow)",secondary:"var(--vef-box-shadow-secondary)",tertiary:"var(--vef-box-shadow-tertiary)",card:"var(--vef-box-shadow-card)",elevated:"0 0 1px rgb(0 0 0 / 30%), 0 4px 14px rgb(0 0 0 / 10%)"},transitionDuration:{fast:"var(--vef-motion-duration-fast)",mid:"var(--vef-motion-duration-mid)",slow:"var(--vef-motion-duration-slow)"},transitionTimingFunction:{"ease-out-circ":"var(--vef-motion-ease-out-circ)","ease-in-out-circ":"var(--vef-motion-ease-in-out-circ)","ease-out":"var(--vef-motion-ease-out)","ease-in-out":"var(--vef-motion-ease-in-out)","ease-out-back":"var(--vef-motion-ease-out-back)","ease-in-back":"var(--vef-motion-ease-in-back)","ease-in-quint":"var(--vef-motion-ease-in-quint)","ease-out-quint":"var(--vef-motion-ease-out-quint)"},zIndex:{base:"var(--vef-z-index-base)",popup:"var(--vef-z-index-popup)"}}}}};
|
|
3
3
|
/*! 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/types.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.56, build time: 2025-01-07T08:47:52.721Z, made by Venus. */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*! 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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vef-framework/dev",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.56",
|
|
5
5
|
"private": false,
|
|
6
6
|
"packageManager": "pnpm@9.15.0",
|
|
7
7
|
"description": "The development tools of the VEF framework",
|
|
@@ -44,21 +44,21 @@
|
|
|
44
44
|
"@commitlint/load": "^19.6.1",
|
|
45
45
|
"@commitlint/read": "^19.5.0",
|
|
46
46
|
"@commitlint/types": "19.5.0",
|
|
47
|
-
"@eslint-react/eslint-plugin": "1.
|
|
47
|
+
"@eslint-react/eslint-plugin": "1.23.2",
|
|
48
48
|
"@iconify-json/hugeicons": "^1.2.3",
|
|
49
|
-
"@iconify-json/lucide": "^1.2.
|
|
50
|
-
"@iconify-json/mingcute": "^1.2.
|
|
49
|
+
"@iconify-json/lucide": "^1.2.21",
|
|
50
|
+
"@iconify-json/mingcute": "^1.2.3",
|
|
51
51
|
"@iconify-json/tabler": "^1.2.13",
|
|
52
52
|
"@svgr/plugin-svgo": "^8.1.0",
|
|
53
53
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
54
|
-
"@tanstack/eslint-plugin-router": "^1.
|
|
55
|
-
"@tanstack/router-plugin": "^1.
|
|
54
|
+
"@tanstack/eslint-plugin-router": "^1.92.7",
|
|
55
|
+
"@tanstack/router-plugin": "^1.95.1",
|
|
56
56
|
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
57
57
|
"autoprefixer": "^10.4.20",
|
|
58
58
|
"browserslist": "^4.24.3",
|
|
59
59
|
"chalk": "^5.4.1",
|
|
60
|
-
"commander": "^
|
|
61
|
-
"consola": "^3.3.
|
|
60
|
+
"commander": "^13.0.0",
|
|
61
|
+
"consola": "^3.3.3",
|
|
62
62
|
"dotenv": "^16.4.7",
|
|
63
63
|
"eslint": "9.17.0",
|
|
64
64
|
"eslint-plugin-format": "0.1.3",
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
"html-minifier-terser": "^7.2.0",
|
|
71
71
|
"husky": "9.1.7",
|
|
72
72
|
"lightningcss": "^1.28.2",
|
|
73
|
-
"lint-staged": "^15.
|
|
73
|
+
"lint-staged": "^15.3.0",
|
|
74
74
|
"local-pkg": "^0.5.1",
|
|
75
75
|
"ora": "^8.1.1",
|
|
76
76
|
"postcss": "^8.4.49",
|
|
77
77
|
"prompts": "^2.4.2",
|
|
78
78
|
"radashi": "12.3.0",
|
|
79
|
-
"rollup-plugin-visualizer": "^5.
|
|
80
|
-
"sass-embedded": "^1.83.
|
|
79
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
80
|
+
"sass-embedded": "^1.83.1",
|
|
81
81
|
"stylelint": "^16.12.0",
|
|
82
82
|
"stylelint-config-recess-order": "^5.1.1",
|
|
83
83
|
"stylelint-config-recommended": "^14.0.1",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"tslib": "2.8.1",
|
|
89
89
|
"unplugin-config": "^0.1.5",
|
|
90
90
|
"unplugin-icons": "^0.22.0",
|
|
91
|
-
"vite": "^6.0.
|
|
91
|
+
"vite": "^6.0.7",
|
|
92
92
|
"vite-plugin-eslint2": "^5.0.3",
|
|
93
93
|
"vite-plugin-inspect": "^0.10.6",
|
|
94
94
|
"vite-plugin-stylelint": "^6.0.0",
|
package/template/package.json
CHANGED
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tanstack/react-router": "1.92.1",
|
|
21
|
-
"@vef-framework/components": "1.0.
|
|
22
|
-
"@vef-framework/core": "1.0.
|
|
23
|
-
"@vef-framework/hooks": "1.0.
|
|
24
|
-
"@vef-framework/shared": "1.0.
|
|
25
|
-
"@vef-framework/starter": "1.0.
|
|
21
|
+
"@vef-framework/components": "1.0.56",
|
|
22
|
+
"@vef-framework/core": "1.0.56",
|
|
23
|
+
"@vef-framework/hooks": "1.0.56",
|
|
24
|
+
"@vef-framework/shared": "1.0.56",
|
|
25
|
+
"@vef-framework/starter": "1.0.56",
|
|
26
26
|
"react": "18.3.1",
|
|
27
27
|
"react-dom": "18.3.1"
|
|
28
28
|
},
|