Skip to content

Commit

Permalink
chore: add basic grunt config
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Jun 24, 2013
1 parent 4ebc769 commit 8e05a04
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.*

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

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

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

grunt.loadNpmTasks 'grunt-bump'
grunt.loadNpmTasks 'grunt-npm'

grunt.registerTask 'release', 'Build, bump and publish to NPM.', (type) ->
grunt.task.run [
"bump:#{type||'patch'}"
'npm-publish'
]
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,10 @@
"peerDependencies": {
"karma": "~0.9.3"
},
"license": "MIT"
"license": "MIT",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-npm": "0.0.2",
"grunt-bump": "0.0.6"
}
}

0 comments on commit 8e05a04

Please sign in to comment.