-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathGruntfile.coffee
47 lines (45 loc) · 1.13 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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON "package.json"
coffee:
compile:
options:
bare: true
files:
"lib/bimap.js": "src/*.coffee"
"test/tests.js": ["test/require.coffee", "test/src/*.coffee"]
coffee_jshint:
scripts:
files: "**/*.coffee"
mochacov:
test:
options:
reporter: 'min'
bail: true
all: ['test/*.js']
coverage:
options:
reporter: 'html-cov'
output: "./coverage/index.html"
#bail: false
all: ['test/*.js']
watch:
grunt:
files: "Gruntfile.coffee"
scripts:
files: [
"src/**/*.coffee",
"test/**/*"
]
tasks: [
"coffee",
"coffee_jshint",
"mochacov:test", "mochacov:coverage"
]
options:
livereload: true
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-coffee-jshint"
grunt.loadNpmTasks "grunt-contrib-watch"
grunt.loadNpmTasks "grunt-mocha-cov"
grunt.registerTask "default", ["watch"]