@vef-framework/dev 1.0.132 → 1.0.133
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
"use strict";var n=require("node:process"),e=require("./constants.cjs");function
|
|
2
|
+
"use strict";var n=require("node:process"),e=require("./constants.cjs");function u({appName:i,appVersion:r,basePublicPath:o,projectDir:t,outputDir:a,serverPort:s,proxies:_}){return{name:"vef-framework:conventional-config",config(p,{command:c}){const m=c==="serve";return{appType:"spa",root:t,base:o,publicDir:"public",envDir:e.ENV_DIR,envPrefix:[e.ENV_BUILD_PREFIX,e.ENV_APP_PREFIX],define:{__VEF_FRAMEWORK_VERSION__:`"${n.env.VEF_FRAMEWORK_VERSION}"`,__VEF_APP_VERSION__:`"${r}"`,__VEF_APP_CONFIG__:m?`
|
|
3
3
|
(function () {
|
|
4
4
|
const env = import.meta.env;
|
|
5
5
|
const config = Object.keys(env).filter(key => key.startsWith(${JSON.stringify(e.ENV_APP_PREFIX)}))
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
}, {});
|
|
10
10
|
return Object.freeze(config);
|
|
11
11
|
})()
|
|
12
|
-
`:`window.__PRODUCTION__VEF_${
|
|
12
|
+
`:`window.__PRODUCTION__VEF_${i??e.DEFAULT_APP_NAME}__CONF__`},css:{modules:{scopeBehaviour:"local",localsConvention:"camelCase"}},optimizeDeps:{exclude:[],esbuildOptions:{plugins:[]}},esbuild:{drop:["console","debugger"],charset:"utf8",minifyIdentifiers:!0,minifySyntax:!1,minifyWhitespace:!0},build:{outDir:a??e.DEFAULT_OUTPUT_DIR,target:"modules",assetsDir:e.ASSETS_DIR,assetsInlineLimit:10240,reportCompressedSize:!1,chunkSizeWarningLimit:2048,minify:!0,sourcemap:!1,rollupOptions:{input:{main:"index.html"},output:{banner:`/*! Powered by VEF Framework v${n.env.VEF_FRAMEWORK_VERSION}.${r?` App version v${r}.`:""} Built at ${new Date().toISOString()} */`,chunkFileNames:`${e.ASSETS_DIR}/js/[name]-[hash].js`,entryFileNames:`${e.ASSETS_DIR}/js/[name]-[hash].js`,assetFileNames:`${e.ASSETS_DIR}/[ext]/[name]-[hash].[ext]`,manualChunks:{react:["react","react-dom"],"vef-framework":["@vef-framework/shared","@vef-framework/hooks","@vef-framework/core","@vef-framework/components","@vef-framework/starter"],"monaco-editor":["monaco-editor"]}}}},server:{port:s||e.DEFAULT_SERVER_PORT,host:!0,open:!0,proxy:_}}}}}exports.createConventionalConfigPlugin=u;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import o from"node:process";import{DEFAULT_SERVER_PORT as
|
|
2
|
+
import o from"node:process";import{DEFAULT_SERVER_PORT as u,ASSETS_DIR as e,DEFAULT_OUTPUT_DIR as f,DEFAULT_APP_NAME as l,ENV_BUILD_PREFIX as E,ENV_APP_PREFIX as n,ENV_DIR as v}from"./constants.js";function F({appName:i,appVersion:r,basePublicPath:t,projectDir:a,outputDir:s,serverPort:c,proxies:_}){return{name:"vef-framework:conventional-config",config(d,{command:m}){const p=m==="serve";return{appType:"spa",root:a,base:t,publicDir:"public",envDir:v,envPrefix:[E,n],define:{__VEF_FRAMEWORK_VERSION__:`"${o.env.VEF_FRAMEWORK_VERSION}"`,__VEF_APP_VERSION__:`"${r}"`,__VEF_APP_CONFIG__:p?`
|
|
3
3
|
(function () {
|
|
4
4
|
const env = import.meta.env;
|
|
5
5
|
const config = Object.keys(env).filter(key => key.startsWith(${JSON.stringify(n)}))
|
|
@@ -9,4 +9,4 @@ import o from"node:process";import{DEFAULT_SERVER_PORT as f,ASSETS_DIR as e,DEFA
|
|
|
9
9
|
}, {});
|
|
10
10
|
return Object.freeze(config);
|
|
11
11
|
})()
|
|
12
|
-
`:`window.__PRODUCTION__VEF_${
|
|
12
|
+
`:`window.__PRODUCTION__VEF_${i??l}__CONF__`},css:{modules:{scopeBehaviour:"local",localsConvention:"camelCase"}},optimizeDeps:{exclude:[],esbuildOptions:{plugins:[]}},esbuild:{drop:["console","debugger"],charset:"utf8",minifyIdentifiers:!0,minifySyntax:!1,minifyWhitespace:!0},build:{outDir:s??f,target:"modules",assetsDir:e,assetsInlineLimit:10240,reportCompressedSize:!1,chunkSizeWarningLimit:2048,minify:!0,sourcemap:!1,rollupOptions:{input:{main:"index.html"},output:{banner:`/*! Powered by VEF Framework v${o.env.VEF_FRAMEWORK_VERSION}.${r?` App version v${r}.`:""} Built at ${new Date().toISOString()} */`,chunkFileNames:`${e}/js/[name]-[hash].js`,entryFileNames:`${e}/js/[name]-[hash].js`,assetFileNames:`${e}/[ext]/[name]-[hash].[ext]`,manualChunks:{react:["react","react-dom"],"vef-framework":["@vef-framework/shared","@vef-framework/hooks","@vef-framework/core","@vef-framework/components","@vef-framework/starter"],"monaco-editor":["monaco-editor"]}}}},server:{port:c||u,host:!0,open:!0,proxy:_}}}}}export{F as createConventionalConfigPlugin};
|
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.133",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "The development tools of the VEF framework",
|
|
7
7
|
"author": "Venus",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@commitlint/config-conventional": "19.8.0",
|
|
47
47
|
"@commitlint/format": "19.8.0",
|
|
48
48
|
"@commitlint/types": "19.8.0",
|
|
49
|
-
"@eslint-react/eslint-plugin": "1.
|
|
49
|
+
"@eslint-react/eslint-plugin": "1.48.1",
|
|
50
50
|
"@iconify-json/hugeicons": "^1.2.4",
|
|
51
|
-
"@iconify-json/lucide": "^1.2.
|
|
51
|
+
"@iconify-json/lucide": "^1.2.37",
|
|
52
52
|
"@iconify-json/mingcute": "^1.2.3",
|
|
53
53
|
"@iconify-json/tabler": "^1.2.17",
|
|
54
54
|
"@svgr/plugin-svgo": "^8.1.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"tslib": "2.8.1",
|
|
88
88
|
"unplugin-config": "^0.1.5",
|
|
89
89
|
"unplugin-icons": "^22.1.0",
|
|
90
|
-
"vite": "6.
|
|
90
|
+
"vite": "6.3.0",
|
|
91
91
|
"vite-plugin-eslint2": "^5.0.3",
|
|
92
92
|
"vite-plugin-inspect": "^11.0.0",
|
|
93
93
|
"vite-plugin-stylelint": "^6.0.0",
|
package/template/_package.json
CHANGED
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@tanstack/react-router": "^1.0.0",
|
|
19
|
-
"@vef-framework/components": "1.0.
|
|
20
|
-
"@vef-framework/core": "1.0.
|
|
21
|
-
"@vef-framework/hooks": "1.0.
|
|
22
|
-
"@vef-framework/shared": "1.0.
|
|
23
|
-
"@vef-framework/starter": "1.0.
|
|
19
|
+
"@vef-framework/components": "1.0.133",
|
|
20
|
+
"@vef-framework/core": "1.0.133",
|
|
21
|
+
"@vef-framework/hooks": "1.0.133",
|
|
22
|
+
"@vef-framework/shared": "1.0.133",
|
|
23
|
+
"@vef-framework/starter": "1.0.133",
|
|
24
24
|
"react": "18.3.1",
|
|
25
25
|
"react-dom": "18.3.1"
|
|
26
26
|
},
|