forked from jan-molak/animal-quiz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
42 lines (33 loc) · 1019 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
42
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-contrib-jshint'
grunt.loadNpmTasks 'grunt-mocha-cov'
grunt.registerTask 'test', [ 'jshint', 'test:spec', 'test:behaviour' ]
grunt.registerTask 'test:spec', [ 'mochacov:spec' ]
grunt.registerTask 'test:behaviour', [ 'mochacov:behaviour' ]
grunt.registerTask 'default', [ 'jshint' ]
grunt.initConfig
src:
js: [ 'src/**/*.js' ]
spec: [ 'test/spec/*.spec.js' ]
features:
path: 'features'
js: 'test/features.js'
jshint: [
'<%= src.js %>', '<%= src.spec %>',
'<%= src.features.js %>'
]
jshint:
src: [ '<%= src.js %>' ]
options:
jshintrc: true
mochacov:
options:
harmony: true
spec:
options:
files: [ '<%= src.spec %>' ]
reporter: 'spec'
behaviour:
options:
files: [ '<%= src.features.js %>' ]
reporter: 'spec'