Skip to content

Commit 5e1e069

Browse files
committed
✨ 同步版本号 为30
1 parent 7f5e4b0 commit 5e1e069

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

bin/micro-app-build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ global.extraArgs = program.args;
1414

1515
const type = program.type;
1616
if (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);

bin/micro-app-dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ process.env.NODE_ENV = 'development';
2121

2222
global.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);

bin/micro-app-start.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ let promise = Promise.resolve();
2222
if (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
});

libs/update.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -32,7 +32,7 @@
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",

0 commit comments

Comments
 (0)