From 7548071e41fa0c9091225f0f78260f45d01f4cd0 Mon Sep 17 00:00:00 2001 From: mrpatpat Date: Thu, 25 Jan 2018 23:51:57 +0100 Subject: [PATCH] bugfix --- visualization/cli.js | 4 ++++ visualization/package-lock.json | 40 +++++++++++++++++++++++-------- visualization/package.json | 5 ++-- visualization/script/npm-start.sh | 2 -- 4 files changed, 37 insertions(+), 14 deletions(-) create mode 100755 visualization/cli.js delete mode 100755 visualization/script/npm-start.sh diff --git a/visualization/cli.js b/visualization/cli.js new file mode 100755 index 0000000000..cdc4156b81 --- /dev/null +++ b/visualization/cli.js @@ -0,0 +1,4 @@ +#!/usr/bin/env node + +const shell = require('shelljs'); +shell.exec(`npm run --prefix ${__dirname} start`); \ No newline at end of file diff --git a/visualization/package-lock.json b/visualization/package-lock.json index f91e333014..7a66e0a1d3 100644 --- a/visualization/package-lock.json +++ b/visualization/package-lock.json @@ -1,6 +1,6 @@ { "name": "codecharta-visualization", - "version": "1.5.2", + "version": "1.6.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -5410,6 +5410,19 @@ "shelljs": "0.7.8", "typedoc-default-themes": "0.4.4", "typescript": "1.8.10" + }, + "dependencies": { + "shelljs": { + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.7.8.tgz", + "integrity": "sha1-3svPh0sNHl+3LhSxZKloMEjprLM=", + "dev": true, + "requires": { + "glob": "7.1.2", + "interpret": "1.1.0", + "rechoir": "0.6.2" + } + } } }, "typescript": { @@ -5893,8 +5906,7 @@ "interpret": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", - "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=", - "dev": true + "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=" }, "invariant": { "version": "2.2.2", @@ -10049,7 +10061,6 @@ "version": "0.6.2", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", - "dev": true, "requires": { "resolve": "1.1.7" } @@ -10360,8 +10371,7 @@ "resolve": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", - "dev": true + "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=" }, "resolve-from": { "version": "2.0.0", @@ -10688,10 +10698,9 @@ } }, "shelljs": { - "version": "0.7.8", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.7.8.tgz", - "integrity": "sha1-3svPh0sNHl+3LhSxZKloMEjprLM=", - "dev": true, + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.1.tgz", + "integrity": "sha512-YA/iYtZpzFe5HyWVGrb02FjPxc4EMCfpoU/Phg9fQoyMC72u9598OUBrsU8IrtwAKG0tO8IYaqbaLIw+k3IRGA==", "requires": { "glob": "7.1.2", "interpret": "1.1.0", @@ -11827,6 +11836,17 @@ "integrity": "sha1-ihvjZr+Pwj2yvSPxDG/pILQ4nR8=", "dev": true }, + "shelljs": { + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.7.8.tgz", + "integrity": "sha1-3svPh0sNHl+3LhSxZKloMEjprLM=", + "dev": true, + "requires": { + "glob": "7.1.2", + "interpret": "1.1.0", + "rechoir": "0.6.2" + } + }, "source-map": { "version": "0.4.4", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", diff --git a/visualization/package.json b/visualization/package.json index 266a26433b..106eb03b29 100755 --- a/visualization/package.json +++ b/visualization/package.json @@ -65,7 +65,7 @@ "prepare": "npm run build" }, "bin": { - "codecharta": "./script/npm-start.sh" + "codecharta-visualization": "cli.js" }, "license": "BSD-3-Clause", "jest": { @@ -104,7 +104,8 @@ } }, "dependencies": { - "nwjs-builder-phoenix": "^1.14.6" + "nwjs-builder-phoenix": "^1.14.6", + "shelljs": "^0.8.1" }, "devDependencies": { "makeshift": "^1.1.0", diff --git a/visualization/script/npm-start.sh b/visualization/script/npm-start.sh deleted file mode 100755 index 37639166ac..0000000000 --- a/visualization/script/npm-start.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -npm run start \ No newline at end of file