From 0f5c63b68e045ac673e6055901f59134f052febc Mon Sep 17 00:00:00 2001 From: Carlos Roberto Gomes Junior Date: Sun, 1 Apr 2018 22:38:23 -0300 Subject: [PATCH] added version bump script --- package.json | 12 +++++++----- yarn.lock | 48 +++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 52 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 9a09f38..68cc9d7 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "babel-core": "^6.26.0", "babel-jest": "^22.4.3", "babel-preset-env": "^1.6.1", + "coveralls": "^3.0.0", "eslint": "^4.19.1", "eslint-config-airbnb-base": "^12.1.0", "eslint-plugin-import": "^2.10.0", @@ -16,7 +17,8 @@ "rimraf": "^2.6.2", "rollup": "^0.57.1", "rollup-plugin-babel": "^3.0.3", - "static-server": "^2.2.0" + "static-server": "^2.2.0", + "version-bump-prompt": "^4.0.0" }, "scripts": { "start": "npm run test -- --watch", @@ -27,9 +29,9 @@ "lint": "eslint .", "clean": "rimraf lib", "build": "npm run clean && npm run lint && npm run test && rollup -c", - "precommit": "npm run lint && npm run test" + "precommit": "npm run lint && npm run test", + "bump": "bump --prompt --commit --tag --push", + "prepublishOnly": "npm run build && npm run bump" }, - "dependencies": { - "coveralls": "^3.0.0" - } + "dependencies": {} } diff --git a/yarn.lock b/yarn.lock index 5215fe8..439e34c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -918,7 +918,7 @@ chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" -chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0: +chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0: version "2.3.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.2.tgz#250dc96b07491bfd601e648d66ddf5f60c7a5c65" dependencies: @@ -1004,7 +1004,7 @@ combined-stream@1.0.6, combined-stream@^1.0.5, combined-stream@~1.0.5: dependencies: delayed-stream "~1.0.0" -commander@^2.3.0: +commander@^2.11.0, commander@^2.3.0: version "2.15.1" resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f" @@ -1195,6 +1195,10 @@ detect-indent@^4.0.0: dependencies: repeating "^2.0.0" +detect-indent@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-5.0.0.tgz#3871cc0a6a002e8c3e5b3cf7f336264675f06b9d" + detect-libc@^1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" @@ -1485,7 +1489,7 @@ extend@~3.0.0, extend@~3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" -external-editor@^2.0.4: +external-editor@^2.0.4, external-editor@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.1.0.tgz#3d026a21b7f95b5726387d4200ac160d372c3b48" dependencies: @@ -1974,6 +1978,25 @@ inquirer@^3.0.6: strip-ansi "^4.0.0" through "^2.3.6" +inquirer@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-4.0.2.tgz#cc678b4cbc0e183a3500cc63395831ec956ab0a3" + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.0" + cli-cursor "^2.1.0" + cli-width "^2.0.0" + external-editor "^2.1.0" + figures "^2.0.0" + lodash "^4.3.0" + mute-stream "0.0.7" + run-async "^2.2.0" + rx-lite "^4.0.8" + rx-lite-aggregates "^4.0.8" + string-width "^2.1.0" + strip-ansi "^4.0.0" + through "^2.3.6" + invariant@^2.2.2: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" @@ -2741,6 +2764,12 @@ log-driver@^1.2.5: version "1.2.7" resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8" +log-symbols@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" + dependencies: + chalk "^2.0.1" + longest@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" @@ -4142,6 +4171,19 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" +version-bump-prompt@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/version-bump-prompt/-/version-bump-prompt-4.0.0.tgz#1a55f1d0b784bad678ab5986f159e0ec59da33ea" + dependencies: + chalk "^2.3.0" + commander "^2.11.0" + cross-spawn "^5.1.0" + detect-indent "^5.0.0" + glob "^7.1.2" + inquirer "^4.0.0" + log-symbols "^2.1.0" + semver "^5.4.1" + w3c-hr-time@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045"