From db48f93ed938455cdae5fd65cb7bc7af28c11f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20=C5=9Eahin=20=C3=96z=C3=A7elik?= Date: Fri, 11 May 2018 22:22:00 +0300 Subject: [PATCH 1/2] tag update script --- .travis.yml | 1 + package.json | 9 ++++++--- scripts/tag-update.js | 11 +++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 scripts/tag-update.js diff --git a/.travis.yml b/.travis.yml index 630ccbc..2f1e935 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ deploy: email: alisahinozcelik@gmail.com api_key: secure: hfZHWsQhCgFtgoyE2y4wzJIznu5Kd4pgNWCxCpWQFsjWGufOOu5ggVYEY0+vDCiIye9LFdavozkweeL4Grcg9hVDR7m9dYZ636Uh7DQ2gGTCqsfQkFuDW71vBs8bc8gf7jfD45MrQOAhEnmlfJEwZkIOOo7kosAw4RsXUlgKNVWdM+gK2ylMvpd/FK/PDFI7HQOCf2NaxuT1rirWg+lVU/GrJoUKSEp9cWML7D1yA7B+D5ciF93BEBVtILPWewZWSt73lu2BF1RCeGK1Rg+oOtAbQz9jRroEUKvK9hA6HubX8wxsEMl40LLT1PZlLKSqFPLnuATQ6rkWExt8Uzw82rGpJ7ubn1Qx6vQaF7UuVERnaMxBDYMXdqfJ2vmWZKF0MbOcB0h9LgzjycSC+r8ySCV+VStDBZ2+8esU06CcwVjWM4XvY+CT56iudIiNkntHdhgtMxnLLodz2XwyE95V46GET1zQU2JtD+hIeEQNCZRfMupDYsS51ue8F+zf8SoCsjA8aiuNpPALBNvPzVibY5yJ0pmHcumTnZye4OVzDblLzWgOwnnscg/Z2O9bw/moesZ/vUwZ1NcHrgOsuNtq4IXGiGsj0GL4jd4qeKuSZQh/PXXBFNTuGQfM24GraiT7dtp3xvCI58oCVkeHCGhDujwfx+b1JvryvkIse81YElk= + before_deploy: node ./scripts/tag-update $TRAVIS_TAG on: tags: true repo: gen-tech/js-utils diff --git a/package.json b/package.json index e2d19c7..57e3079 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,13 @@ { "name": "@gen-tech/js-utils", - "version": "0.9.1", + "version": "<>", "description": "Javascript utility functions for web development", "main": "dist/index.js", "typings": "dist/index.d.ts", "homepage": "https://gen-tech.github.io/js-utils", "keywords": [ + "object", + "deep clone", "array", "compact", "promise", @@ -41,7 +43,8 @@ "nyc": "^11.7.1", "ts-node": "^6.0.3", "typedoc": "^0.11.1", - "typescript": "^2.8.3" + "typescript": "^2.8.3", + "update-json": "^1.0.0" }, "dependencies": { "tslib": "^1.9.0" @@ -68,4 +71,4 @@ ], "all": true } -} +} \ No newline at end of file diff --git a/scripts/tag-update.js b/scripts/tag-update.js new file mode 100644 index 0000000..79e5f97 --- /dev/null +++ b/scripts/tag-update.js @@ -0,0 +1,11 @@ +const updateJson = require('update-json'); + +const [, , version] = process.argv; + +updateJson("./package.json", {version}, error => { + if (error) { + throw error; + } else { + console.log("Package version updated to:", version); + } +}); \ No newline at end of file From c9187bb9f9570eff1d57d69a6002a2d8a4dce256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20=C5=9Eahin=20=C3=96z=C3=A7elik?= Date: Fri, 11 May 2018 22:25:16 +0300 Subject: [PATCH 2/2] version changed to 0.0.0 for travis build --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 57e3079..2085917 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gen-tech/js-utils", - "version": "<>", + "version": "0.0.0", "description": "Javascript utility functions for web development", "main": "dist/index.js", "typings": "dist/index.d.ts",