File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 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" ,
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" ,
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" ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const path = require('path');
55const chalk = require ( 'chalk' ) ;
66const fs = require ( 'fs' ) ;
77
8+ // TODO 抽离
89module . exports = function deployCommand ( api , opts ) {
910
1011 api . registerMethod ( 'beforeCommandDeploy' , {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const _ = require('lodash');
66
77module . 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' ) ;
You can’t perform that action at this time.
0 commit comments