@vaadin/cli
Advanced tools
Comparing version 1.1.1 to 1.2.0-pre3
{ | ||
"name": "@vaadin/cli", | ||
"version": "1.1.1", | ||
"version": "1.2.0-pre3", | ||
"description": "A CLI for creating Vaadin applications", | ||
@@ -27,6 +27,8 @@ "keywords": [ | ||
"readline-sync": "^1.4.9", | ||
"replace-in-file": "^4.1.0", | ||
"request": "^2.88.0", | ||
"request-promise": "^4.2.2", | ||
"tar": "^4.4.10", | ||
"uuid": "^3.3.2" | ||
} | ||
} |
@@ -5,2 +5,4 @@ #!/usr/bin/env node | ||
const enableHotswap = require("./hotswap"); | ||
const fs = require("fs"); | ||
@@ -80,2 +82,3 @@ const request = require("request-promise"); | ||
.option("--pre", "Use the latest pre release (if available)") | ||
.option("--hotswap", "Enable hotswapping using Trava JDK") | ||
.option( | ||
@@ -139,8 +142,13 @@ "--tech [tech]", | ||
options, | ||
function(error, response, body) { | ||
async function(error, response, body) { | ||
if (response && response.statusCode == 200) { | ||
fs.writeFileSync("temp.zip", body); | ||
decompress("temp.zip", projectName); | ||
await decompress("temp.zip", projectName); | ||
fs.unlinkSync("temp.zip"); | ||
console.log("Project '" + projectName + "' created"); | ||
process.chdir(projectName); | ||
if (program.hotswap) { | ||
enableHotswap(); | ||
} | ||
} | ||
@@ -147,0 +155,0 @@ } |
@@ -10,4 +10,7 @@ #!/usr/bin/env node | ||
.version(require("../package.json").version) | ||
.command("init <name>", "Create a new project"); | ||
.command("init <name>", "Create a new project") | ||
.command("hotswap", "Enable hotswapping in the current project (using Trava JDK)") | ||
.command("java", "Download and install a supported JDK") | ||
; | ||
program.parse(process.argv); |
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
Explicitly Unlicensed Item
License(Experimental) Something was found which is explicitly marked as unlicensed.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
292696
83
324
12
1
0
3
6
+ Addedreplace-in-file@^4.1.0
+ Addedtar@^4.4.10
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@3.2.14.3.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcamelcase@5.3.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedchownr@1.1.4(transitive)
+ Addedcliui@6.0.0(transitive)
+ Addedcolor-convert@1.9.32.0.1(transitive)
+ Addedcolor-name@1.1.31.1.4(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedfs-minipass@1.2.7(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedminipass@2.9.0(transitive)
+ Addedminizlib@1.3.3(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedreplace-in-file@4.3.1(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedrequire-main-filename@2.0.0(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedtar@4.4.19(transitive)
+ Addedwhich-module@2.0.1(transitive)
+ Addedwrap-ansi@6.2.0(transitive)
+ Addedy18n@4.0.3(transitive)
+ Addedyallist@3.1.1(transitive)
+ Addedyargs@15.4.1(transitive)
+ Addedyargs-parser@18.1.3(transitive)