chore(): no-install flag

This commit is contained in:
Manu Mtz.-Almeida
2019-01-16 17:15:43 +01:00
parent 5e8511607a
commit 90740ce2c2
3 changed files with 13 additions and 10 deletions

View File

@ -5,7 +5,7 @@ const Listr = require('listr');
async function main() {
const tasks = [];
common.packages.forEach(package => {
common.preparePackage(tasks, package);
common.preparePackage(tasks, package, false, false);
});
const listr = new Listr(tasks, { showSubtasks: true });

View File

@ -64,7 +64,7 @@ function checkGit(tasks) {
const isValidVersion = input => Boolean(semver.valid(input));
function preparePackage(tasks, package, version) {
function preparePackage(tasks, package, version, install) {
const projectRoot = projectPath(package);
const pkg = readPkg(package);
@ -78,6 +78,7 @@ function preparePackage(tasks, package, version) {
}
}
});
if (install) {
projectTasks.push({
title: `${pkg.name}: install npm dependencies`,
task: async () => {
@ -86,6 +87,7 @@ function preparePackage(tasks, package, version) {
}
});
}
}
if (package !== 'docs') {
if (package !== 'core') {

View File

@ -18,9 +18,10 @@ async function main() {
}
const version = await askVersion();
const install = process.argv.indexOf('--no-install') < 0;
// compile and verify packages
await preparePackages(common.packages, version);
await preparePackages(common.packages, version, install);
console.log(`\nionic ${version} prepared 🤖\n`);
console.log(`Next steps:`);