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