@unmagic/vms 0.0.5 → 0.1.1
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/dist/cli-B7IxnuYZ.js +4620 -0
- package/dist/index.js +7 -11
- package/package.json +5 -12
- package/dist/cli-Dgfsv5Hi.js +0 -5784
package/dist/index.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import dotenv from
|
|
2
|
-
|
|
1
|
+
import dotenv from "dotenv-flow";
|
|
2
|
+
//#region src/index.ts
|
|
3
3
|
async function runVMS(options) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
return dev();
|
|
11
|
-
}
|
|
4
|
+
dotenv.config({ node_env: options.mode });
|
|
5
|
+
const { dev, prod } = await import("./cli-B7IxnuYZ.js");
|
|
6
|
+
if (options.mode === "production") return prod(options);
|
|
7
|
+
else return dev();
|
|
12
8
|
}
|
|
13
|
-
|
|
9
|
+
//#endregion
|
|
14
10
|
export { runVMS };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unmagic/vms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "基于 @unmagic/vue-mini 的Vue3 单文件组件构建工具",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,12 +26,9 @@
|
|
|
26
26
|
"bin"
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@unmagic/vue-mini": ">=1.0.
|
|
29
|
+
"@unmagic/vue-mini": ">=1.0.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@rollup/plugin-alias": "^6.0.0",
|
|
33
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
34
|
-
"@rollup/plugin-typescript": "^12.3.0",
|
|
35
32
|
"@types/babel__code-frame": "^7.27.0",
|
|
36
33
|
"@types/babel__core": "^7.20.5",
|
|
37
34
|
"@types/babel__generator": "^7.27.0",
|
|
@@ -64,10 +61,6 @@
|
|
|
64
61
|
"@babel/runtime": "^7.29.2",
|
|
65
62
|
"@babel/traverse": "^7.29.0",
|
|
66
63
|
"@babel/types": "^7.29.0",
|
|
67
|
-
"@rollup/plugin-commonjs": "^29.0.2",
|
|
68
|
-
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
69
|
-
"@rollup/plugin-replace": "^6.0.3",
|
|
70
|
-
"@rollup/plugin-terser": "^1.0.0",
|
|
71
64
|
"@vue/compiler-core": "3.5.33",
|
|
72
65
|
"@vue/compiler-dom": "3.5.33",
|
|
73
66
|
"@vue/compiler-sfc": "3.5.33",
|
|
@@ -82,15 +75,15 @@
|
|
|
82
75
|
"kolorist": "^1.8.0",
|
|
83
76
|
"local-pkg": "^1.1.2",
|
|
84
77
|
"miniprogram-ci": "^2.1.31",
|
|
85
|
-
"
|
|
78
|
+
"rolldown": "^1.0.0",
|
|
86
79
|
"terser": "^5.46.2",
|
|
87
80
|
"tinycolor2": "^1.6.0"
|
|
88
81
|
},
|
|
89
82
|
"scripts": {
|
|
90
|
-
"example:dev": "
|
|
83
|
+
"example:dev": "cd example && npm run dev",
|
|
91
84
|
"example:build": "cd example && npm run build",
|
|
92
85
|
"example:inspect": "cd example && npm run inspect:vms",
|
|
93
|
-
"vms:build": "
|
|
86
|
+
"vms:build": "rolldown --config rolldown.config.js",
|
|
94
87
|
"test": "vitest",
|
|
95
88
|
"test:run": "vitest run",
|
|
96
89
|
"test:ui": "vitest --ui",
|