forked from napo0703/linda-worker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.coffee
60 lines (51 loc) · 1.3 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
'use strict'
module.exports = (grunt) ->
require 'coffee-errors'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-jsonlint'
grunt.loadNpmTasks 'grunt-simple-mocha'
grunt.loadNpmTasks 'grunt-notify'
grunt.registerTask 'test', [ 'jsonlint', 'coffeelint', 'simplemocha' ]
grunt.registerTask 'default', [ 'test', 'watch' ]
grunt.initConfig
jsonlint:
config:
src: [
'*.json'
]
coffeelint:
options:
max_line_length:
value: 0
indentation:
value: 2
newlines_after_classes:
level: 'error'
no_empty_param_list:
level: 'error'
no_unnecessary_fat_arrows:
level: 'ignore'
dist:
files: [
{ expand: yes, cwd: 'scripts/', src: [ '*.coffee' ] }
{ expand: yes, cwd: 'tests/', src: [ '*.coffee' ] }
]
simplemocha:
options:
ui: 'bdd'
reporter: 'spec'
compilers: 'coffee:coffee-script'
ignoreLeaks: no
dist:
src: [ 'tests/test_*.coffee' ]
watch:
options:
interrupt: yes
dist:
files: [
'*.coffee'
'scripts/*.coffee'
'tests/*.coffee'
]
tasks: [ 'test' ]