-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
40 lines (34 loc) · 1.16 KB
/
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
module.exports = (grunt) ->
grunt.initConfig
test:
options:
bare: true
expand: true
src: ['test/**/*.coffee']
dest: 'test'
ext: '.js'
mochacli:
options:
reporter: 'spec'
colors: true
compilers: ['coffee:coffee-script/register']
all: ['./test/*.coffee']
coffeelint:
lib: ['*.coffee', 'src/*.coffee', 'test/*.coffee']
options:
'arrow_spacing': level: 'error'
'colon_assignment_spacing': level: 'error', spacing: right: 1, left: 0
'line_endings': level: 'error'
'newlines_after_classes': level: 'error'
'no_empty_param_list': level: 'error'
'no_interpolation_in_single_quotes': level: 'error'
'no_stand_alone_at': level: 'error'
'no_unnecessary_double_quotes': level: 'error'
'prefer_english_operator': level: 'error'
'space_operators': level: 'error'
'spacing_after_comma': level: 'error'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-mocha-cli'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.registerTask 'test', ['mochacli']
grunt.registerTask 'lint', ['coffeelint']