From 93cdaa2e0533e654b61fe9cad80b6700a38c2c3b Mon Sep 17 00:00:00 2001 From: Daniel Morgenstern Date: Mon, 3 Sep 2018 21:48:03 +0200 Subject: [PATCH] simplify build scripts --- README.md | 18 +++++++++++----- package-lock.json | 53 +++++++++++++++++++---------------------------- package.json | 11 +++++----- 3 files changed, 40 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index b1752c2..33df19f 100644 --- a/README.md +++ b/README.md @@ -3,28 +3,36 @@ npmFrog A nice npmjs.org-like web interface for jFrog Artifactory -## Project setup +## Installation ```bash -npm install +npm i -g npmfrog ``` Duplicate the file `.SAMPLE.npmfrogrc.json` and rename it to `.npmfrogrc.json` (you either leave it in the project directory or put it in your home directory). -## Start App (Server and WebUI) +## Start App + +### Prod ```bash npm start ``` -With local environment (no internet connection necessary): +### Dev ```bash npm run dev ``` +With local environment (no internet connection necessary): + +```bash +npm run dev-local +``` + To see the logs, run ```bash -pm2 logs +npm run logs ``` diff --git a/package-lock.json b/package-lock.json index a34cd67..c4f09e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "npmfrog", - "version": "1.0.0-next.0", + "version": "1.0.0-alpha.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -471,7 +471,7 @@ "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", - "integrity": "sha1-irwSj3lG4xATXdyTuYvdtBDno0s=", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", "dev": true, "requires": { "graceful-fs": "^4.1.2", @@ -4084,7 +4084,7 @@ "core-js": { "version": "2.5.7", "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz", - "integrity": "sha1-+XJgj/DOrWi4QaFqky0LGDeRgU4=", + "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==", "dev": true }, "core-util-is": { @@ -4555,7 +4555,7 @@ "cssom": { "version": "0.3.4", "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.4.tgz", - "integrity": "sha1-jNUuijrP1o067TjuCmQBd9L515c=" + "integrity": "sha512-+7prCSORpXNeR4/fUP3rL+TzqtiFfhMvTd7uEqMdgPvLPt4+uzFUeufx5RHjGTACCargg/DiEt/moMQmvnfkog==" }, "cssstyle": { "version": "1.1.1", @@ -6295,7 +6295,7 @@ "fs-extra": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.0.tgz", - "integrity": "sha1-jMP0fOB+97NZOhG5+yRffjTAQdY=", + "integrity": "sha512-EglNDLRpmaTWiD/qraZn6HREAEAHJcJOmxNEYwq6xeMKnVMAy3GUcFB+wXt2C6k4CNvB/mP1y/U3dzvKKj5OtQ==", "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -6305,7 +6305,7 @@ "fs-minipass": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz", - "integrity": "sha1-BsJ3IYRU7CiN93raVKA7hwKqy50=", + "integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==", "requires": { "minipass": "^2.2.1" } @@ -6330,7 +6330,7 @@ "fsevents": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", - "integrity": "sha1-9B3LGvJYKvNpLaNvxVy9jhBBxCY=", + "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", "optional": true, "requires": { "nan": "^2.9.2", @@ -6362,13 +6362,11 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true, - "optional": true + "bundled": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -6381,18 +6379,15 @@ }, "code-point-at": { "version": "1.1.0", - "bundled": true, - "optional": true + "bundled": true }, "concat-map": { "version": "0.0.1", - "bundled": true, - "optional": true + "bundled": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true, - "optional": true + "bundled": true }, "core-util-is": { "version": "1.0.2", @@ -6495,8 +6490,7 @@ }, "inherits": { "version": "2.0.3", - "bundled": true, - "optional": true + "bundled": true }, "ini": { "version": "1.3.5", @@ -6506,7 +6500,6 @@ "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -6519,7 +6512,6 @@ "minimatch": { "version": "3.0.4", "bundled": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -6619,8 +6611,7 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true, - "optional": true + "bundled": true }, "object-assign": { "version": "4.1.1", @@ -6630,7 +6621,6 @@ "once": { "version": "1.4.0", "bundled": true, - "optional": true, "requires": { "wrappy": "1" } @@ -6736,7 +6726,6 @@ "string-width": { "version": "1.0.2", "bundled": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -10219,7 +10208,7 @@ "minipass": { "version": "2.3.4", "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.4.tgz", - "integrity": "sha1-R2jXYF7WGU1tV2FpueEu9x6dmVc=", + "integrity": "sha512-mlouk1OHlaUE8Odt1drMtG1bAJA4ZA6B/ehysgV0LUIrDHdKgo1KorZq3pK0b/7Z7LJIQ12MNM6aC+Tn6lUZ5w==", "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -10235,7 +10224,7 @@ "minizlib": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.1.0.tgz", - "integrity": "sha1-EeE2WM5GvDpwomeqxYNZ0eDCnOs=", + "integrity": "sha512-4T6Ur/GctZ27nHfpt9THOdRZNgyJ9FZchYO1ceg5S8Q3DNLCKYy44nCZzgCJgcvx2UM8czmqak5BCxJMrq37lA==", "requires": { "minipass": "^2.2.1" } @@ -13313,7 +13302,7 @@ "regenerator-runtime": { "version": "0.11.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha1-vgWtf5v30i4Fb5cmzuUBf78Z4uk=", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", "dev": true }, "regenerator-transform": { @@ -14518,7 +14507,7 @@ "yargs": { "version": "10.1.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-10.1.2.tgz", - "integrity": "sha1-RU0HTCsWpRpD4vt4B+T53mnMtcU=", + "integrity": "sha512-ivSoxqBGYOqQVruxD35+EyCFDYNEFL/Uo6FcOnz+9xZdZzK0Zzw4r4KhbrME1Oo2gOggwJod2MnsdamSG7H9ig==", "requires": { "cliui": "^4.0.0", "decamelize": "^1.1.1", @@ -14537,7 +14526,7 @@ "yargs-parser": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-8.1.0.tgz", - "integrity": "sha1-8TdqM7Ziml0GN4KUTacyYx6WaVA=", + "integrity": "sha512-yP+6QqN8BmrgW2ggLtTbdrOyBNSI7zBa4IykmiV5R1wl1JWNxQvWhMfMdmzIYtKU7oP3OOInY/tl2ov3BDjnJQ==", "requires": { "camelcase": "^4.1.0" } @@ -15167,7 +15156,7 @@ "tar": { "version": "4.4.6", "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.6.tgz", - "integrity": "sha1-YxEPCcALTmCsi8/hvzyGYCNfvJs=", + "integrity": "sha512-tMkTnh9EdzxyfW+6GK6fCahagXsnYk6kE6S9Gr9pjVdys769+laCTbodXDhPAjzVtEBazRgP0gYqOjnk9dQzLg==", "requires": { "chownr": "^1.0.1", "fs-minipass": "^1.2.5", @@ -16352,7 +16341,7 @@ "vue-cli-plugin-vuetify": { "version": "0.1.6", "resolved": "https://registry.npmjs.org/vue-cli-plugin-vuetify/-/vue-cli-plugin-vuetify-0.1.6.tgz", - "integrity": "sha1-kVpHxdT51P7kTIJvXPnpWWuttS0=", + "integrity": "sha512-PHiVGYLckWlqG78UN9YyrigEYZeCpu2toI4vPBPGOhcpfEvwRtwr5bEu0mR+/GDoTbJMTDDoIj0EP1hJKoqIcQ==", "dev": true }, "vue-clipboard2": { @@ -16415,7 +16404,7 @@ "vue-simple-svg": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/vue-simple-svg/-/vue-simple-svg-1.3.1.tgz", - "integrity": "sha1-jCtAM6SJTAAd6tZNQBAWtpgYLBg=", + "integrity": "sha512-k8XdOQWTg+zn5IufkCaH0bmn3HtS4UxCYS+r4BQ35rnCZB7Ysgrz+4ijatqsAWHciL74Hcqv7hW9pHJbbjzGSQ==", "requires": { "cssom": "^0.3.2" } diff --git a/package.json b/package.json index 4b8f543..9c7584a 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,14 @@ "name": "npmfrog", "version": "1.0.0-alpha.2", "scripts": { - "start": "pm2 start frog-ui frog-server", - "dev": "pm2 start frog-ui frog-server --env local", + "start": "pm2 serve --name \"frog-ui-static\" dist 8000 && pm2 start ecosystem.config.js --only frog-server", + "dev": "pm2 start", + "dev-local": "pm2 start --env local", "build": "npm run stop && vue-cli-service build", "zip": "bestzip tmp/webui.zip dist/*", - "prod": "pm2 serve --name \"frog-ui-static\" dist 8000 && pm2 start ecosystem.config.js --only frog-server", - "stop": "pm2 stop ecosystem.config.js frog-ui-static", - "release": "release-it --preRelease=alpha" + "logs": "pm2 logs", + "stop": "pm2 stop ecosystem.config.js", + "pre-release": "release-it --preRelease=alpha" }, "dependencies": { "axios": "^0.18.0",