Comparing version 2.17.0 to 2.18.0
17
cli.js
@@ -13,2 +13,3 @@ #!/usr/bin/env node | ||
const folderName = process.argv.slice(2)[0] || 'ipwa'; | ||
const install = process.argv.slice(2)[1] || false; | ||
@@ -47,3 +48,13 @@ const overWritePackage = () => { | ||
showLoader(`Installing dependencies for ${folderName}`); | ||
exec(`npm ci --prefix ${folderName}`, () => { | ||
if (install) { | ||
exec(`npm ci --prefix ${folderName}`, () => { | ||
showLoader('Cleaning up'); | ||
exec(`rm ipwa.tar.gz`, () => { | ||
exec(`rmdir temp`, () => { | ||
spinner.stop(); | ||
console.log(chalk.green(`Successfully created project ${folderName}!`)); | ||
}); | ||
}); | ||
}); | ||
} else { | ||
showLoader('Cleaning up'); | ||
@@ -53,6 +64,6 @@ exec(`rm ipwa.tar.gz`, () => { | ||
spinner.stop(); | ||
console.log(chalk.green(`Successfully created project ${folderName}!`)); | ||
console.log(chalk.green(`Successfully created project ${folderName}! You'll need to install the dependencies yourself.`)); | ||
}); | ||
}); | ||
}); | ||
} | ||
}); | ||
@@ -59,0 +70,0 @@ }); |
{ | ||
"name": "ipwa", | ||
"version": "2.17.0", | ||
"version": "2.18.0", | ||
"author": "Sreeram Padmanabhan", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15749
62