Skip to content

Commit e36b273

Browse files
committed
🎨 优化抽离 build 命令, 抽离 webpack 逻辑.
1 parent 1016a84 commit e36b273

File tree

22 files changed

+333
-553
lines changed

22 files changed

+333
-553
lines changed

bin/micro-app-build.js

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

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "@micro-app/cli",
3-
"version": "0.1.6",
3+
"version": "0.2.0-beta.1",
44
"description": "[CLI] Pluggable micro application framework.",
55
"bin": {
66
"micro-app": "./bin/micro-app.js",
77
"micro-app-dev": "./bin/micro-app-dev.js",
8-
"micro-app-build": "./bin/micro-app-build.js",
98
"micro-app-start": "./bin/micro-app-start.js"
109
},
1110
"scripts": {
@@ -53,7 +52,6 @@
5352
"@micro-app/plugin-webpack-adapter": "^0.0.5"
5453
},
5554
"dependencies": {
56-
"cli-highlight": "^2.1.1",
5755
"koa": "^2.8.1",
5856
"shelljs": "^0.8.3",
5957
"update-notifier": "^3.0.1",

plugins/commands/build/index.js

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

plugins/commands/build/methods.js

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('Command init', () => {
66

77
it('init', () => {
88

9-
const { service } = require('../../bin/base');
9+
const { service } = require('../../../bin/base');
1010

1111
const plugin = service.plugins.find(item => item.id === 'cli:plugins-commands-init');
1212
expect(typeof plugin).toEqual('object');

plugins/commands/inspect/index.js

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

plugins/commands/inspect/index.test.js

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

0 commit comments

Comments
 (0)