Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Gama committed Sep 20, 2016
1 parent 0f5b53e commit aff7be2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@
"mocha": "--compilers js:babel-register --bail test"
},
"scripts": {
"build": "rm -rf dist/* && ./node_modules/.bin/babel src/ --out-dir dist/",
"changelog": "github_changelog_generator --bug-labels --enhancement-labels --header-label='# Changelog'",
"coveralls": "npm run cover && cat ./test/coverage/lcov.info | coveralls",
"changelog": "github_changelog_generator --bug-labels --enhancement-labels --future-release=$npm_config_release --header-label='# Changelog'",
"cover": "babel-node node_modules/isparta/bin/isparta cover $npm_package_options_isparta _mocha -- $npm_package_options_mocha",
"coveralls": "npm run cover && cat ./test/coverage/lcov.info | coveralls",
"lint": "git diff --cached --name-only --diff-filter=ACMRTUXB | grep -E '\\.(js)(\\..+)?$' | xargs eslint",
"test": "mocha $npm_package_options_mocha"
"release": "npm run changelog && npm run version && npm run transpile && git add -A && git commit -n -m \"Release $npm_config_release\"",
"test": "mocha $npm_package_options_mocha",
"transpile": "rm -rf dist/* && ./node_modules/.bin/babel src/ --out-dir dist/",
"version": "sed -i '' 's/\\(\"version\": \"\\)'\"$npm_package_version\"'\\(\"\\)/\\1'\"$npm_config_release\"'\\2/' package.json"
},
"dependencies": {
"babel-runtime": "6.11.6"
Expand Down

0 comments on commit aff7be2

Please # to comment.