Skip to content

Commit

Permalink
added version bump script
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosrberto committed Apr 2, 2018
1 parent 8c8a65c commit 0f5c63b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 8 deletions.
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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": {}
}
48 changes: 45 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"

Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 0f5c63b

Please sign in to comment.