UNPKG

1.07 kBtext/coffeescriptView Raw
1module.exports = (grunt) ->
2
3 # Project configuration.
4 grunt.initConfig
5
6 coffeelint:
7 # global options
8 options:
9 indentation:
10 value: 4
11 level: 'warn'
12
13 # a target that overrides default options
14 one:
15 files:
16 src: ['test/fixtures/*.coffee']
17 options:
18 indentation:
19 value: 2
20 level: 'warn'
21 'no_trailing_semicolons':
22 level: 'warn'
23
24 # a simple target
25 two: ['test/fixtures/correct.coffee', 'test/fixtures/some.coffee']
26
27 'bump': options:
28 pushTo: 'upstream'
29
30 # Load local tasks.
31 grunt.loadTasks 'tasks'
32
33 grunt.loadNpmTasks 'grunt-npm'
34 grunt.loadNpmTasks 'grunt-bump'
35 grunt.loadNpmTasks 'grunt-auto-release'
36
37 # Default task.
38 grunt.registerTask 'default', 'coffeelint'
39
40 grunt.registerTask 'test', 'coffeelint'
41
42 grunt.registerTask 'release', 'Bump version, push to NPM.', (type)->
43 grunt.task.run [
44 "bump:#{type || 'patch'}"
45 'npm-publish'
46 ]