@tmsfe/tmskit 0.0.25 → 0.0.26
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/index.cjs.js +335 -481
- package/package.json +5 -10
- package/src/scripts/run/dev/index.js +2 -2
- package/src/scripts/run/index.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmsfe/tmskit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"description": "tmskit",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"bin": {
|
|
@@ -33,11 +33,7 @@
|
|
|
33
33
|
"@rollup/plugin-json": "^4.0.3",
|
|
34
34
|
"rollup": "^2.6.1"
|
|
35
35
|
},
|
|
36
|
-
"whiteDependencies": {
|
|
37
|
-
"miniprogram-ci": "ignore",
|
|
38
|
-
"ora": "ignore",
|
|
39
|
-
"shelljs": "ignore"
|
|
40
|
-
},
|
|
36
|
+
"whiteDependencies": {},
|
|
41
37
|
"dependencies": {
|
|
42
38
|
"ansi-colors": "1.1.0",
|
|
43
39
|
"anymatch": "^1.3.0",
|
|
@@ -45,7 +41,6 @@
|
|
|
45
41
|
"chalk": "^4.1.0",
|
|
46
42
|
"chokidar": "^3.5.3",
|
|
47
43
|
"commander": "^8.3.0",
|
|
48
|
-
"copy-webpack-plugin": "^9.1.0",
|
|
49
44
|
"ejs": "^3.1.5",
|
|
50
45
|
"fancy-log": "1.3.2",
|
|
51
46
|
"fs-extra": "^10.0.1",
|
|
@@ -63,7 +58,7 @@
|
|
|
63
58
|
"miniprogram-ci": "1.8.25",
|
|
64
59
|
"moment": "^2.29.2",
|
|
65
60
|
"object-assign": "^4.0.1",
|
|
66
|
-
"ora": "^5.1
|
|
61
|
+
"ora": "^5.4.1",
|
|
67
62
|
"path-is-absolute": "^1.0.1",
|
|
68
63
|
"plugin-error": "^1.0.0",
|
|
69
64
|
"postcss": "^8.4.6",
|
|
@@ -71,7 +66,7 @@
|
|
|
71
66
|
"readable-stream": "^2.2.2",
|
|
72
67
|
"replace-ext": "^2.0.0",
|
|
73
68
|
"request": "^2.88.2",
|
|
74
|
-
"shelljs": "^0.8.
|
|
69
|
+
"shelljs": "^0.8.5",
|
|
75
70
|
"slash": "^1.0.0",
|
|
76
71
|
"strip-comments": "^2.0.1",
|
|
77
72
|
"through2": "^4.0.2",
|
|
@@ -86,4 +81,4 @@
|
|
|
86
81
|
"jest": {
|
|
87
82
|
"testEnvironment": "jest-environment-node"
|
|
88
83
|
}
|
|
89
|
-
}
|
|
84
|
+
}
|
|
@@ -7,7 +7,7 @@ const { info } = require('../../../utils/log');
|
|
|
7
7
|
const { global } = require('../../../utils/global');
|
|
8
8
|
const { MODULE_CODE_DIR, NODE_MODULES_DIR } = require('../../../config/constant');
|
|
9
9
|
const report = require('../../../core/report');
|
|
10
|
-
const { recommendVersion } = require('../../../core/recommendVersion');
|
|
10
|
+
// const { recommendVersion } = require('../../../core/recommendVersion');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
// 用户编译分包时,需要将dist中其他分包(主包不能删除)的内容删除,否则其他分包的内容混入到主包(导致主包的体积超2M)
|
|
@@ -35,7 +35,7 @@ async function dev(tmsConfig, targetModules) {
|
|
|
35
35
|
shelljs.rm('-rf', NODE_MODULES_DIR);
|
|
36
36
|
}
|
|
37
37
|
// 推荐tmskit的版本
|
|
38
|
-
await recommendVersion();
|
|
38
|
+
// await recommendVersion();
|
|
39
39
|
|
|
40
40
|
// 初始化操作
|
|
41
41
|
const { subPackages, modules: newModules } = await init(tmsConfig, targetModules);
|
package/src/scripts/run/index.js
CHANGED
|
@@ -91,29 +91,29 @@ function otherCommands(tmsConfig, commandName, cmdOptions) {
|
|
|
91
91
|
switch (commandName) {
|
|
92
92
|
case 'init':
|
|
93
93
|
init(tmsConfig, newModules);
|
|
94
|
-
report('run:init', { appName: tmsConfig
|
|
94
|
+
report('run:init', { appName: tmsConfig.appName });
|
|
95
95
|
return;
|
|
96
96
|
case 'dev':
|
|
97
97
|
global.setData('isDev', true);
|
|
98
98
|
dev(tmsConfig, newModules);
|
|
99
|
-
report('run:dev', { appName: tmsConfig
|
|
99
|
+
report('run:dev', { appName: tmsConfig.appName });
|
|
100
100
|
return;
|
|
101
101
|
case 'install':
|
|
102
102
|
install(tmsConfig, subPackages, false);
|
|
103
|
-
report('run:install', { appName: tmsConfig
|
|
103
|
+
report('run:install', { appName: tmsConfig.appName });
|
|
104
104
|
return;
|
|
105
105
|
case 'build':
|
|
106
106
|
global.setData('isDev', false);
|
|
107
107
|
build(tmsConfig, newModules);
|
|
108
|
-
report('run:build', { appName: tmsConfig
|
|
108
|
+
report('run:build', { appName: tmsConfig.appName });
|
|
109
109
|
return;
|
|
110
110
|
case 'preview':
|
|
111
111
|
preview(tmsConfig, cmdOptions);
|
|
112
|
-
report('run:preview', { appName: tmsConfig
|
|
112
|
+
report('run:preview', { appName: tmsConfig.appName });
|
|
113
113
|
return;
|
|
114
114
|
case 'upload':
|
|
115
115
|
upload(tmsConfig, cmdOptions);
|
|
116
|
-
report('run:upload', { appName: tmsConfig
|
|
116
|
+
report('run:upload', { appName: tmsConfig.appName });
|
|
117
117
|
return;
|
|
118
118
|
default:
|
|
119
119
|
return;
|