Skip to content

Commit 547fd98

Browse files
committed
🎨 移出deploy指令, 拆分 start 和 serve 等.
1 parent 220bd14 commit 547fd98

File tree

22 files changed

+362
-703
lines changed

22 files changed

+362
-703
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ module.exports = {
9696
server: {
9797
entry: '', // 服务端入口
9898
port: 8088, // 服务端口号
99-
contentBase: 'public', // 静态文件地址
10099
options: {
101100
// 服务端回调参数
102101
},

bin/base.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@ if ([ 'start', 'build' ].includes(cmd)) {
1818
}
1919

2020
// 全局指令
21-
if (!global.MicroAppConfig) {
22-
global.MicroAppConfig = {};
23-
}
24-
const MicroAppConfig = global.MicroAppConfig;
25-
MicroAppConfig.OPEN_SOFT_LINK = argv.openSoftLink || false; // 开启软链接
26-
MicroAppConfig.OPEN_DISABLED_ENTRY = argv.openDisabledEntry || false; // 开启禁用指定模块入口, 优化开发速度
21+
process.env.MICRO_APP_OPEN_SOFT_LINK = argv.openSoftLink || false; // 开启软链接
22+
process.env.MICRO_APP_OPEN_DISABLED_ENTRY = argv.openDisabledEntry || false; // 开启禁用指定模块入口, 优化开发速度
2723

2824
const microApp = require('@micro-app/core');
2925
const Service = microApp.Service;

libs/deploy.js

Lines changed: 0 additions & 139 deletions
This file was deleted.

libs/update.js

Lines changed: 0 additions & 68 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@micro-app/cli",
3-
"version": "0.1.3",
3+
"version": "0.1.4-beta.1",
44
"description": "[CLI] Pluggable micro application framework.",
55
"bin": {
66
"micro-app": "./bin/micro-app.js",
@@ -36,7 +36,7 @@
3636
},
3737
"license": "MIT",
3838
"devDependencies": {
39-
"@micro-app/core": "^0.1.3",
39+
"@micro-app/core": "^0.1.4-beta.1",
4040
"@micro-app/plugin-webpack-adapter": "^0.0.3",
4141
"@micro-app/plugin-koa-static-server": "^0.0.1",
4242
"@micro-app/plugin-koa-webpack-middleware": "^0.0.1",
@@ -51,7 +51,7 @@
5151
"webpack": "^4.39.2"
5252
},
5353
"peerDependencies": {
54-
"@micro-app/core": "^0.1.3",
54+
"@micro-app/core": ">=0.1.5",
5555
"@micro-app/plugin-webpack-adapter": "^0.0.3"
5656
},
5757
"dependencies": {

plugins/commands/build.js

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)