File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ global.extraArgs = program.args;
1414
1515const type = program . type ;
1616if ( type === 'vusion' ) {
17- microApp . vusion . build ( ) . then ( ( ) => {
17+ microApp . vusionAdapter . build ( ) . then ( ( ) => {
1818 console . info ( '>>> Build Success >>>' ) ;
1919 } ) . catch ( e => {
2020 console . error ( '>>> Build Error >>>' , e ) ;
2121 } ) ;
2222} else if ( ! type || type === 'webpack' ) {
2323 // webpack build ...
24- microApp . webpack . build ( ) . then ( ( ) => {
24+ microApp . webpackAdapter . build ( ) . then ( ( ) => {
2525 console . info ( '>>> Build Success >>>' ) ;
2626 } ) . catch ( e => {
2727 console . error ( '>>> Build Error >>>' , e ) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ process.env.NODE_ENV = 'development';
2121
2222global . extraArgs = program . args ;
2323
24- microApp . koa . devServer ( program , url => {
24+ microApp . koaAdapter . devServer ( program , url => {
2525 // success
2626 if ( program . openBrowser ) {
2727 opn ( url ) ;
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ let promise = Promise.resolve();
2222if ( program . build ) {
2323 const type = program . type ;
2424 if ( type === 'vusion' ) {
25- promise = microApp . vusion . build ( ) . then ( ( ) => {
25+ promise = microApp . vusionAdapter . build ( ) . then ( ( ) => {
2626 return Promise . resolve ( true ) ;
2727 } ) ;
2828 } else {
2929 // webpack build ...
30- promise = microApp . webpack . build ( ) . then ( ( ) => {
30+ promise = microApp . webpackAdapter . build ( ) . then ( ( ) => {
3131 return Promise . resolve ( true ) ;
3232 } ) ;
3333 }
@@ -37,7 +37,7 @@ promise.then(flag => {
3737 if ( flag ) {
3838 logger . success ( 'Build finish' ) ;
3939 }
40- microApp . koa . runServer ( program , url => {
40+ microApp . koaAdapter . runServer ( program , url => {
4141 // success
4242 logger . info ( `Open Browser, URL: ${ chalk . yellow ( url ) } ` ) ;
4343 } ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ module.exports = name => {
3434 }
3535 } else if ( name === 'all' || name === '*' ) {
3636 shelljs . rm ( '-rf' , path . join ( microAppConfig . root , 'package-lock.json' ) ) ;
37- const _gitPaths = micros . map ( key => {
37+ micros . map ( key => {
3838 const microConfig = microApp ( key ) ;
3939 if ( microConfig ) {
4040 const root = microConfig . root ;
@@ -59,7 +59,7 @@ module.exports = name => {
5959 } ) ;
6060
6161 logger . logo ( 'waiting...' ) ;
62- shelljs . exec ( ` npm install -D " ${ _gitPaths . join ( '" ' ) } "` ) ;
62+ shelljs . exec ( ' npm install' ) ;
6363
6464 logger . logo ( `${ chalk . green ( 'Finish!' ) } ` ) ;
6565 return ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @micro-app/cli" ,
3- "version" : " 0.0.24 " ,
3+ "version" : " 0.0.30 " ,
44 "description" : " micro app cli" ,
55 "bin" : {
66 "micro-app" : " ./bin/micro-app.js" ,
3232 "eslint-config-2o3t" : " ^1.1.4"
3333 },
3434 "dependencies" : {
35- "@micro-app/core" : " ^0.0.17 " ,
35+ "@micro-app/core" : " ^0.0.30 " ,
3636 "chalk" : " ^2.4.2" ,
3737 "commander" : " ^2.19.0" ,
3838 "opn" : " ^5.4.0" ,
You can’t perform that action at this time.
0 commit comments