forked from vojtajina/grunt-bump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
32 lines (25 loc) · 877 Bytes
/
Gruntfile.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module.exports = (grunt) ->
# load all npm grunt tasks
require('load-grunt-tasks') grunt
grunt.initConfig
jshint:
options: node: true
task: ['tasks/*.js']
test: ['<%= nodeunit.tests %>']
clean: tests: ['tmp']
nodeunit: tests: ['test/test_*.js']
bump: options: commitFiles: [ 'package.json', 'CHANGELOG.md' ]
'auto-release': options: checkTravisBuild: false
'npm-contributors': options: commit: false
# Actually load this plugin's task. Mainly for testing
grunt.loadTasks('tasks')
grunt.registerTask 'test', ['clean', 'jshint:test', 'nodeunit']
grunt.registerTask 'default', ['jshint:task']
grunt.registerTask 'release', 'Build, bump and publish to NPM.', (type) ->
grunt.task.run [
'npm-contributors'
"bump-only:#{type or 'patch'}"
'changelog'
'bump-commit'
'npm-publish'
]