Skip to content

Commit 0dd6f98

Browse files
authored
Merge pull request #7 from MicrosApp/develop
🎨 依赖适配
2 parents 18378e5 + 220bd14 commit 0dd6f98

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@micro-app/cli",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "[CLI] Pluggable micro application framework.",
55
"bin": {
66
"micro-app": "./bin/micro-app.js",
@@ -36,6 +36,8 @@
3636
},
3737
"license": "MIT",
3838
"devDependencies": {
39+
"@micro-app/core": "^0.1.3",
40+
"@micro-app/plugin-webpack-adapter": "^0.0.3",
3941
"@micro-app/plugin-koa-static-server": "^0.0.1",
4042
"@micro-app/plugin-koa-webpack-middleware": "^0.0.1",
4143
"@micro-app/plugin-vue-cli": "^0.0.2",
@@ -48,8 +50,11 @@
4850
"jest": "^24.9.0",
4951
"webpack": "^4.39.2"
5052
},
53+
"peerDependencies": {
54+
"@micro-app/core": "^0.1.3",
55+
"@micro-app/plugin-webpack-adapter": "^0.0.3"
56+
},
5157
"dependencies": {
52-
"@micro-app/core": "^0.1.1",
5358
"koa": "^2.8.1",
5459
"opn": "^5.5.0",
5560
"shelljs": "^0.8.3",

plugins/commands/deploy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const path = require('path');
55
const chalk = require('chalk');
66
const fs = require('fs');
77

8+
// TODO 抽离
89
module.exports = function deployCommand(api, opts) {
910

1011
api.registerMethod('beforeCommandDeploy', {

src/adapter/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const _ = require('lodash');
66

77
module.exports = function adapter(api, info) {
88
const logger = api.logger;
9-
const _webpackConfig = api.getState('webpackConfig');
9+
const _webpackConfig = api.resolveWebpackConfig();
1010
const _webpackDevOptions = _webpackConfig.devServer || {};
1111

1212
const webpack = tryRequire('webpack');

0 commit comments

Comments
 (0)