Skip to content

Commit

Permalink
chore: add release tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Jul 5, 2013
1 parent c768f30 commit 1db3640
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.*

Gruntfile.coffee
29 changes: 29 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = (grunt) ->

# Project configuration.
grunt.initConfig
pkgFile: 'package.json'

'npm-contributors':
options:
commitMessage: 'chore: update contributors'

bump:
options:
commitMessage: 'chore: release v%VERSION%'
pushTo: 'upstream'

'auto-release':
options:
checkTravisBuild: false

grunt.loadNpmTasks 'grunt-npm'
grunt.loadNpmTasks 'grunt-bump'
grunt.loadNpmTasks 'grunt-auto-release'

grunt.registerTask 'release', 'Bump the version and publish to NPM.', (type) ->
grunt.task.run [
'npm-contributors',
"bump:#{type||'patch'}",
'npm-publish'
]
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@
"peerDependencies": {
"karma": "~0.9"
},
"license": "MIT"
"license": "MIT",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-npm": "~0.0.2",
"grunt-bump": "~0.0.7",
"grunt-auto-release": "~0.0.2"
}
}

0 comments on commit 1db3640

Please sign in to comment.