-
Notifications
You must be signed in to change notification settings - Fork 122
/
Gruntfile.coffee
36 lines (29 loc) · 988 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
33
34
35
36
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' ]
commitMessage: 'chore: Release v%VERSION%'
'auto-release': options: checkTravisBuild: false
'npm-contributors': options:
commit: false
commitMessage: 'chore: update contributors'
# 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'
]