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