@vef-framework/dev 1.0.100 → 1.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/cli.js +225 -2
- package/es/commitlint-config.js +11 -2
- package/es/config.js +77 -2
- package/es/constants.js +14 -2
- package/es/eslint-config.js +410 -2
- package/es/index.js +6 -2
- package/es/modules.d.js +2 -1
- package/es/plugin-app-config.js +34 -2
- package/es/plugin-conventional-config.js +95 -2
- package/es/plugin-eslint.js +20 -2
- package/es/plugin-html.js +82 -2
- package/es/plugin-icons.js +17 -2
- package/es/plugin-injection.js +17 -2
- package/es/plugin-inspect.js +11 -2
- package/es/plugin-react-swc.js +10 -2
- package/es/plugin-router.js +44 -2
- package/es/plugin-stylelint.js +20 -2
- package/es/plugin-svgr.js +55 -2
- package/es/plugin-tailwind.js +8 -2
- package/es/plugin-tailwindcss.js +21 -2
- package/es/plugin-tsconfig-paths.js +10 -2
- package/es/plugin-visualizer.js +12 -2
- package/es/plugin-webfont.js +11 -2
- package/es/stylelint-config.js +64 -2
- package/es/tailwind-config.js +392 -2
- package/lib/cli.cjs +227 -2
- package/lib/commitlint-config.cjs +15 -2
- package/lib/config.cjs +81 -2
- package/lib/constants.cjs +28 -2
- package/lib/eslint-config.cjs +414 -2
- package/lib/index.cjs +18 -2
- package/lib/modules.d.cjs +4 -2
- package/lib/plugin-app-config.cjs +38 -2
- package/lib/plugin-conventional-config.cjs +99 -2
- package/lib/plugin-eslint.cjs +24 -2
- package/lib/plugin-html.cjs +86 -2
- package/lib/plugin-icons.cjs +22 -2
- package/lib/plugin-injection.cjs +21 -2
- package/lib/plugin-inspect.cjs +15 -2
- package/lib/plugin-react-swc.cjs +14 -2
- package/lib/plugin-router.cjs +48 -2
- package/lib/plugin-stylelint.cjs +24 -2
- package/lib/plugin-svgr.cjs +59 -2
- package/lib/plugin-tailwind.cjs +12 -2
- package/lib/plugin-tailwindcss.cjs +25 -2
- package/lib/plugin-tsconfig-paths.cjs +14 -2
- package/lib/plugin-visualizer.cjs +16 -2
- package/lib/plugin-webfont.cjs +15 -2
- package/lib/stylelint-config.cjs +68 -2
- package/lib/tailwind-config.cjs +396 -2
- package/lib/types.cjs +4 -2
- package/package.json +1 -1
- package/template/_package.json +5 -5
|
@@ -1,3 +1,100 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const process = require('node:process');
|
|
7
|
+
const constants = require('./constants.cjs');
|
|
8
|
+
|
|
9
|
+
function createConventionalConfigPlugin({
|
|
10
|
+
appName,
|
|
11
|
+
appVersion,
|
|
12
|
+
basePublicPath,
|
|
13
|
+
projectDir,
|
|
14
|
+
outputDir,
|
|
15
|
+
serverPort,
|
|
16
|
+
proxies
|
|
17
|
+
}) {
|
|
18
|
+
return {
|
|
19
|
+
name: "vef-framework:conventional-config",
|
|
20
|
+
config(_, { command }) {
|
|
21
|
+
const isDev = command === "serve";
|
|
22
|
+
return {
|
|
23
|
+
appType: "spa",
|
|
24
|
+
root: projectDir,
|
|
25
|
+
base: basePublicPath,
|
|
26
|
+
publicDir: "public",
|
|
27
|
+
envDir: constants.ENV_DIR,
|
|
28
|
+
envPrefix: [constants.ENV_BUILD_PREFIX, constants.ENV_APP_PREFIX],
|
|
29
|
+
define: {
|
|
30
|
+
__VEF_FRAMEWORK_VERSION__: `"${process.env.VEF_FRAMEWORK_VERSION}"`,
|
|
31
|
+
__VEF_APP_VERSION__: `"${appVersion}"`,
|
|
32
|
+
__VEF_APP_CONFIG__: isDev ? `
|
|
33
|
+
(function () {
|
|
34
|
+
const env = import.meta.env;
|
|
35
|
+
const config = Object.keys(env).filter(key => key.startsWith(${JSON.stringify(constants.ENV_APP_PREFIX)}))
|
|
36
|
+
.reduce((acc, key) => {
|
|
37
|
+
acc[key] = env[key];
|
|
38
|
+
return acc;
|
|
39
|
+
}, {});
|
|
40
|
+
return Object.freeze(config);
|
|
41
|
+
})()
|
|
42
|
+
` : `window.__PRODUCTION__VEF_${appName ?? constants.DEFAULT_APP_NAME}__CONF__`
|
|
43
|
+
},
|
|
44
|
+
css: {
|
|
45
|
+
modules: {
|
|
46
|
+
scopeBehaviour: "local",
|
|
47
|
+
localsConvention: "camelCase"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
optimizeDeps: {
|
|
51
|
+
include: ["react", "react-dom"]
|
|
52
|
+
},
|
|
53
|
+
esbuild: {
|
|
54
|
+
target: "es2023",
|
|
55
|
+
drop: ["console", "debugger"],
|
|
56
|
+
charset: "utf8"
|
|
57
|
+
},
|
|
58
|
+
build: {
|
|
59
|
+
outDir: outputDir ?? constants.DEFAULT_OUTPUT_DIR,
|
|
60
|
+
target: "modules",
|
|
61
|
+
assetsDir: constants.ASSETS_DIR,
|
|
62
|
+
assetsInlineLimit: 10240,
|
|
63
|
+
reportCompressedSize: false,
|
|
64
|
+
chunkSizeWarningLimit: 2048,
|
|
65
|
+
minify: true,
|
|
66
|
+
sourcemap: false,
|
|
67
|
+
rollupOptions: {
|
|
68
|
+
maxParallelFileOps: 200,
|
|
69
|
+
input: {
|
|
70
|
+
main: "index.html"
|
|
71
|
+
},
|
|
72
|
+
output: {
|
|
73
|
+
banner: `/*! Powered by VEF Framework v${process.env.VEF_FRAMEWORK_VERSION}.${appVersion ? ` App version v${appVersion}.` : ""} Built at ${(/* @__PURE__ */ new Date()).toISOString()} */`,
|
|
74
|
+
chunkFileNames: `${constants.ASSETS_DIR}/js/[name]-[hash].js`,
|
|
75
|
+
entryFileNames: `${constants.ASSETS_DIR}/js/[name]-[hash].js`,
|
|
76
|
+
assetFileNames: `${constants.ASSETS_DIR}/[ext]/[name]-[hash].[ext]`,
|
|
77
|
+
manualChunks: {
|
|
78
|
+
"react": ["react", "react-dom"],
|
|
79
|
+
"vef-shared": ["@vef-framework/shared"],
|
|
80
|
+
"vef-components": ["@vef-framework/components"],
|
|
81
|
+
"vef-hooks": ["@vef-framework/hooks"],
|
|
82
|
+
"vef-core": ["@vef-framework/core"],
|
|
83
|
+
"vef-starter": ["@vef-framework/starter"]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
server: {
|
|
89
|
+
port: serverPort || constants.DEFAULT_SERVER_PORT,
|
|
90
|
+
host: true,
|
|
91
|
+
open: true,
|
|
92
|
+
proxy: proxies
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
exports.createConventionalConfigPlugin = createConventionalConfigPlugin;
|
|
3
100
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/lib/plugin-eslint.cjs
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const eslint = require('vite-plugin-eslint2');
|
|
7
|
+
|
|
8
|
+
function createEslintPlugin() {
|
|
9
|
+
return eslint({
|
|
10
|
+
fix: true,
|
|
11
|
+
test: false,
|
|
12
|
+
dev: true,
|
|
13
|
+
build: false,
|
|
14
|
+
cache: true,
|
|
15
|
+
cacheLocation: "node_modules/.cache/.eslintcache",
|
|
16
|
+
include: ["*.{js,ts,json,jsonc,yaml,toml,md}", "src/**/*.{ts,tsx,json,jsonc,yaml,toml,md}"],
|
|
17
|
+
exclude: ["node_modules", "virtual:", "vef:"],
|
|
18
|
+
emitError: true,
|
|
19
|
+
emitWarning: true,
|
|
20
|
+
emitWarningAsError: true
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
exports.createEslintPlugin = createEslintPlugin;
|
|
3
25
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/lib/plugin-html.cjs
CHANGED
|
@@ -1,3 +1,87 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const htmlMinifierTerser = require('html-minifier-terser');
|
|
7
|
+
|
|
8
|
+
const virtualModuleId = "index.html";
|
|
9
|
+
const htmlContent = `
|
|
10
|
+
<!doctype html>
|
|
11
|
+
<html lang="en">
|
|
12
|
+
<head>
|
|
13
|
+
<meta charset="UTF-8" />
|
|
14
|
+
<link rel="icon" type="image/svg+xml" href="%VEF_APP_FAVICON%" />
|
|
15
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
16
|
+
<meta name="description" content="Powered by VEF Framework" />
|
|
17
|
+
<title>%VEF_APP_TITLE%</title>
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<div id="root"></div>
|
|
21
|
+
<script type="module" src="src/main.ts"><\/script>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
24
|
+
`;
|
|
25
|
+
function createHtmlPlugin() {
|
|
26
|
+
return [
|
|
27
|
+
{
|
|
28
|
+
name: "vef-framework:html",
|
|
29
|
+
resolveId(source) {
|
|
30
|
+
if (source === virtualModuleId) {
|
|
31
|
+
return virtualModuleId;
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
load(id) {
|
|
35
|
+
if (id === virtualModuleId) {
|
|
36
|
+
return htmlContent;
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
transformIndexHtml: {
|
|
40
|
+
order: "pre",
|
|
41
|
+
handler: () => htmlContent
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "vite-plugin-vef-framework-html-minify",
|
|
46
|
+
enforce: "post",
|
|
47
|
+
async generateBundle(_, bundles) {
|
|
48
|
+
for (const bundle of Object.values(bundles)) {
|
|
49
|
+
if (bundle.type === "asset" && typeof bundle.source === "string" && bundle.fileName === virtualModuleId) {
|
|
50
|
+
bundle.source = await htmlMinifierTerser.minify(
|
|
51
|
+
bundle.source,
|
|
52
|
+
{
|
|
53
|
+
collapseBooleanAttributes: true,
|
|
54
|
+
collapseInlineTagWhitespace: true,
|
|
55
|
+
collapseWhitespace: true,
|
|
56
|
+
conservativeCollapse: false,
|
|
57
|
+
keepClosingSlash: true,
|
|
58
|
+
minifyCSS: true,
|
|
59
|
+
minifyJS: true,
|
|
60
|
+
minifyURLs: true,
|
|
61
|
+
noNewlinesBeforeTagClose: true,
|
|
62
|
+
quoteCharacter: `"`,
|
|
63
|
+
removeAttributeQuotes: false,
|
|
64
|
+
removeComments: true,
|
|
65
|
+
removeEmptyAttributes: true,
|
|
66
|
+
removeOptionalTags: false,
|
|
67
|
+
removeRedundantAttributes: true,
|
|
68
|
+
removeScriptTypeAttributes: false,
|
|
69
|
+
removeTagWhitespace: false,
|
|
70
|
+
removeEmptyElements: false,
|
|
71
|
+
removeStyleLinkTypeAttributes: false,
|
|
72
|
+
sortAttributes: true,
|
|
73
|
+
sortClassName: true,
|
|
74
|
+
trimCustomFragments: true,
|
|
75
|
+
useShortDoctype: true,
|
|
76
|
+
html5: true
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
exports.createHtmlPlugin = createHtmlPlugin;
|
|
3
87
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/lib/plugin-icons.cjs
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const node_path = require('node:path');
|
|
7
|
+
const node_url = require('node:url');
|
|
8
|
+
const icons = require('unplugin-icons/vite');
|
|
9
|
+
|
|
10
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
11
|
+
function createIconsPlugin(projectDir) {
|
|
12
|
+
return icons({
|
|
13
|
+
autoInstall: false,
|
|
14
|
+
compiler: "jsx",
|
|
15
|
+
jsx: "react",
|
|
16
|
+
defaultClass: "inline-block",
|
|
17
|
+
scale: 1.2,
|
|
18
|
+
collectionsNodeResolvePath: [projectDir, node_path.resolve(node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('plugin-icons.cjs', document.baseURI).href)))), "..")]
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
exports.createIconsPlugin = createIconsPlugin;
|
|
3
23
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/lib/plugin-injection.cjs
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const node_path = require('node:path');
|
|
7
|
+
|
|
8
|
+
function createInjectionPlugin() {
|
|
9
|
+
return {
|
|
10
|
+
name: "vef-framework:injection",
|
|
11
|
+
transform(code, id) {
|
|
12
|
+
if (node_path.basename(node_path.dirname(id)) === "src" && node_path.basename(id).startsWith("main.ts")) {
|
|
13
|
+
return `import "vef:tailwind.css";
|
|
14
|
+
${code}`;
|
|
15
|
+
}
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
exports.createInjectionPlugin = createInjectionPlugin;
|
|
3
22
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/lib/plugin-inspect.cjs
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const inspect = require('vite-plugin-inspect');
|
|
7
|
+
|
|
8
|
+
function createInspectPlugin() {
|
|
9
|
+
return inspect({
|
|
10
|
+
dev: true,
|
|
11
|
+
build: false
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
exports.createInspectPlugin = createInspectPlugin;
|
|
3
16
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/lib/plugin-react-swc.cjs
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const react = require('@vitejs/plugin-react-swc');
|
|
7
|
+
|
|
8
|
+
function createReactSwcPlugin() {
|
|
9
|
+
return react({
|
|
10
|
+
devTarget: "esnext"
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.createReactSwcPlugin = createReactSwcPlugin;
|
|
3
15
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/lib/plugin-router.cjs
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const vite = require('@tanstack/router-plugin/vite');
|
|
7
|
+
const node_path = require('node:path');
|
|
8
|
+
const constants = require('./constants.cjs');
|
|
9
|
+
|
|
10
|
+
function createRouterPlugin(projectDir, history = "hash", autoCodeSplitting) {
|
|
11
|
+
return vite.TanStackRouterVite({
|
|
12
|
+
routesDirectory: node_path.resolve(projectDir, constants.SRC_DIR, constants.PAGES_DIR),
|
|
13
|
+
generatedRouteTree: node_path.resolve(projectDir, constants.SRC_DIR, constants.ROUTER_DIR, "router.gen.ts"),
|
|
14
|
+
quoteStyle: "double",
|
|
15
|
+
semicolons: true,
|
|
16
|
+
disableTypes: false,
|
|
17
|
+
addExtensions: false,
|
|
18
|
+
disableLogging: false,
|
|
19
|
+
disableManifestGeneration: false,
|
|
20
|
+
routeFileIgnorePattern: "components",
|
|
21
|
+
indexToken: "index",
|
|
22
|
+
routeToken: "route",
|
|
23
|
+
enableRouteGeneration: true,
|
|
24
|
+
autoCodeSplitting,
|
|
25
|
+
routeTreeFileHeader: [
|
|
26
|
+
"/* eslint-disable */",
|
|
27
|
+
"// @ts-nocheck",
|
|
28
|
+
"// noinspection JSUnusedGlobalSymbols",
|
|
29
|
+
`import { createRouter } from "@vef-framework/starter";`
|
|
30
|
+
],
|
|
31
|
+
routeTreeFileFooter: [
|
|
32
|
+
`const router = createRouter({
|
|
33
|
+
routeTree,
|
|
34
|
+
history: "${history}",
|
|
35
|
+
});
|
|
36
|
+
`,
|
|
37
|
+
`declare module "@tanstack/react-router" {
|
|
38
|
+
interface Register {
|
|
39
|
+
router: typeof router;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`,
|
|
43
|
+
`export default router;`
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
exports.createRouterPlugin = createRouterPlugin;
|
|
3
49
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/lib/plugin-stylelint.cjs
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const stylelint = require('vite-plugin-stylelint');
|
|
7
|
+
|
|
8
|
+
function createStylelintPlugin() {
|
|
9
|
+
return stylelint({
|
|
10
|
+
fix: true,
|
|
11
|
+
test: false,
|
|
12
|
+
dev: true,
|
|
13
|
+
build: false,
|
|
14
|
+
cache: true,
|
|
15
|
+
cacheLocation: "node_modules/.cache/.stylelintcache",
|
|
16
|
+
include: ["src/**/*.{scss,css}"],
|
|
17
|
+
exclude: ["node_modules", "virtual:", "vef:"],
|
|
18
|
+
emitError: true,
|
|
19
|
+
emitWarning: true,
|
|
20
|
+
emitWarningAsError: true
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
exports.createStylelintPlugin = createStylelintPlugin;
|
|
3
25
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/lib/plugin-svgr.cjs
CHANGED
|
@@ -1,3 +1,60 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const svgr = require('vite-plugin-svgr');
|
|
7
|
+
|
|
8
|
+
function createSvgrPlugin() {
|
|
9
|
+
return svgr({
|
|
10
|
+
include: "**/*.svg?react",
|
|
11
|
+
esbuildOptions: {
|
|
12
|
+
platform: "browser",
|
|
13
|
+
minify: true,
|
|
14
|
+
jsx: "automatic"
|
|
15
|
+
},
|
|
16
|
+
svgrOptions: {
|
|
17
|
+
plugins: [
|
|
18
|
+
"@svgr/plugin-svgo",
|
|
19
|
+
"@svgr/plugin-jsx"
|
|
20
|
+
],
|
|
21
|
+
icon: false,
|
|
22
|
+
dimensions: false,
|
|
23
|
+
prettier: true,
|
|
24
|
+
memo: true,
|
|
25
|
+
svgo: true,
|
|
26
|
+
ref: false,
|
|
27
|
+
typescript: true,
|
|
28
|
+
jsxRuntime: "automatic",
|
|
29
|
+
svgoConfig: {
|
|
30
|
+
multipass: true,
|
|
31
|
+
datauri: "base64",
|
|
32
|
+
js2svg: {
|
|
33
|
+
indent: 2,
|
|
34
|
+
pretty: true
|
|
35
|
+
},
|
|
36
|
+
plugins: [
|
|
37
|
+
"preset-default",
|
|
38
|
+
{
|
|
39
|
+
name: "prefixIds",
|
|
40
|
+
params: {
|
|
41
|
+
prefix: "vef"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "cleanupIds",
|
|
46
|
+
params: {
|
|
47
|
+
force: true,
|
|
48
|
+
remove: true,
|
|
49
|
+
minify: true
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
svgProps: {}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
exports.createSvgrPlugin = createSvgrPlugin;
|
|
3
60
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/lib/plugin-tailwind.cjs
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const tailwindcss = require('@tailwindcss/vite');
|
|
7
|
+
|
|
8
|
+
function createTailwindPlugin() {
|
|
9
|
+
return tailwindcss();
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
exports.createTailwindPlugin = createTailwindPlugin;
|
|
3
13
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const virtualModuleId = "vef:tailwind.css";
|
|
7
|
+
const resolvedVirtualModuleId = `\0${virtualModuleId}`;
|
|
8
|
+
function createTailwindcssPlugin() {
|
|
9
|
+
return {
|
|
10
|
+
name: "vef-framework:tailwindcss",
|
|
11
|
+
resolveId(id) {
|
|
12
|
+
if (id === virtualModuleId) {
|
|
13
|
+
return resolvedVirtualModuleId;
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
load(id) {
|
|
17
|
+
if (id === resolvedVirtualModuleId) {
|
|
18
|
+
return `@import "tailwindcss";
|
|
19
|
+
@config "./tailwind.config.js";`;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
exports.createTailwindcssPlugin = createTailwindcssPlugin;
|
|
3
26
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const tsconfigPaths = require('vite-tsconfig-paths');
|
|
7
|
+
|
|
8
|
+
function createTsconfigPathsPlugin(projectDir) {
|
|
9
|
+
return tsconfigPaths({
|
|
10
|
+
root: projectDir
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.createTsconfigPathsPlugin = createTsconfigPathsPlugin;
|
|
3
15
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const rollupPluginVisualizer = require('rollup-plugin-visualizer');
|
|
7
|
+
|
|
8
|
+
function createVisualizerPlugin(projectDir) {
|
|
9
|
+
return rollupPluginVisualizer.visualizer({
|
|
10
|
+
filename: "dist/stats.html",
|
|
11
|
+
title: "Building Visualizer",
|
|
12
|
+
projectRoot: projectDir
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
exports.createVisualizerPlugin = createVisualizerPlugin;
|
|
3
17
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/lib/plugin-webfont.cjs
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const webfont = require('vite-plugin-webfont-dl');
|
|
7
|
+
|
|
8
|
+
function createWebfontPlugin() {
|
|
9
|
+
return webfont([
|
|
10
|
+
"https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap",
|
|
11
|
+
"https://fonts.googleapis.com/css2?family=Martian+Mono:wght@100..800&family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap"
|
|
12
|
+
]);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
exports.createWebfontPlugin = createWebfontPlugin;
|
|
3
16
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/lib/stylelint-config.cjs
CHANGED
|
@@ -1,3 +1,69 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:15.261Z, made by Venus. */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const propertyGroups = require('stylelint-config-recess-order/groups');
|
|
7
|
+
|
|
8
|
+
function defineStylelintConfig() {
|
|
9
|
+
return {
|
|
10
|
+
extends: [
|
|
11
|
+
"stylelint-config-standard-scss",
|
|
12
|
+
"stylelint-config-recommended"
|
|
13
|
+
],
|
|
14
|
+
plugins: ["stylelint-order"],
|
|
15
|
+
rules: {
|
|
16
|
+
"order/order": [
|
|
17
|
+
"dollar-variables",
|
|
18
|
+
"at-variables",
|
|
19
|
+
"custom-properties",
|
|
20
|
+
"less-mixins",
|
|
21
|
+
"declarations",
|
|
22
|
+
"at-rules",
|
|
23
|
+
"rules"
|
|
24
|
+
],
|
|
25
|
+
"order/properties-order": propertyGroups.map((group) => ({
|
|
26
|
+
...group,
|
|
27
|
+
emptyLineBefore: "always",
|
|
28
|
+
noEmptyLineBetween: true
|
|
29
|
+
})),
|
|
30
|
+
"declaration-empty-line-before": null,
|
|
31
|
+
"at-rule-no-unknown": null,
|
|
32
|
+
"function-no-unknown": null,
|
|
33
|
+
"number-max-precision": null,
|
|
34
|
+
"color-hex-length": "long",
|
|
35
|
+
"color-hex-alpha": "never",
|
|
36
|
+
"color-named": "never",
|
|
37
|
+
"unit-allowed-list": [
|
|
38
|
+
"px",
|
|
39
|
+
"em",
|
|
40
|
+
"rem",
|
|
41
|
+
"%",
|
|
42
|
+
"vw",
|
|
43
|
+
"vh",
|
|
44
|
+
"fr",
|
|
45
|
+
"deg",
|
|
46
|
+
"rad",
|
|
47
|
+
"grad",
|
|
48
|
+
"turn",
|
|
49
|
+
"ms",
|
|
50
|
+
"s"
|
|
51
|
+
],
|
|
52
|
+
"scss/function-no-unknown": [
|
|
53
|
+
true,
|
|
54
|
+
{
|
|
55
|
+
ignoreFunctions: []
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"scss/at-rule-no-unknown": [
|
|
59
|
+
true,
|
|
60
|
+
{
|
|
61
|
+
ignoreAtRules: ["config"]
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
exports.defineStylelintConfig = defineStylelintConfig;
|
|
3
69
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|