forked from karma-runner/karma-teamcity-reporter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
gruntfile.coffee
41 lines (35 loc) · 977 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
37
38
39
40
41
module.exports = (grunt) ->
grunt.initConfig
pkgFile: 'package.json'
jshint:
all: ['index.js']
options:
jshintrc: '.jshintrc'
simplemocha:
options:
ui: 'bdd'
reporter: 'dot'
unit:
src: [
'test/*.coffee'
]
'npm-contributors':
options:
commitMessage: 'chore: update contributors'
bump:
options:
commitMessage: 'chore: release v%VERSION%'
pushTo: 'upstream'
grunt.loadNpmTasks 'grunt-simple-mocha'
grunt.loadNpmTasks 'grunt-contrib-jshint'
grunt.loadNpmTasks 'grunt-npm'
grunt.loadNpmTasks 'grunt-bump'
grunt.loadNpmTasks 'grunt-auto-release'
grunt.registerTask 'test', ['simplemocha']
grunt.registerTask 'default', ['jshint', 'simplemocha']
grunt.registerTask 'release', 'Bump the version and publish to NPM.', (type) ->
grunt.task.run [
'npm-contributors',
"bump:#{type||'patch'}",
'npm-publish'
]