Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add release script #24

Merged
merged 1 commit into from
Oct 25, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@
},
"scripts": {
"build": "rm -rf dist/* && ./node_modules/.bin/babel src/ --out-dir dist/",
"changelog": "github_changelog_generator --bug-labels --enhancement-labels --header-label='# Changelog'",
"changelog": "github_changelog_generator --bug-labels --enhancement-labels --future-release=$npm_config_release --header-label='# Changelog'",
"coveralls": "npm run cover && cat ./test/coverage/lcov.info | coveralls",
"cover": "NODE_ENV=test nyc mocha $npm_package_options_mocha",
"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 build && git add -A && git commit -n -m \"Release $npm_config_release\"",
"test": "mocha $npm_package_options_mocha",
"version": "sed -i '' 's/\\(\"version\": \"\\)'\"$npm_package_version\"'\\(\"\\)/\\1'\"$npm_config_release\"'\\2/' package.json"
},
"peerDependencies": {
"bookshelf": ">= 0.7"
Expand Down