forked from tbranyen/backbone.layoutmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
82 lines (67 loc) · 1.75 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
module.exports = ->
# Configuration.
@initConfig
clean: ["test/report"]
jshint:
files: ["backbone.layoutmanager.js"]
node:
files:
src: ["node/index.js"]
options:
node: true
test:
files:
src: ["test/spec/*.js", "test/util/*.js"]
options:
maxlen: false
globals:
global: true
$: true
Backbone: true
_: true
require: true
QUnit: true
start: true
stop: true
ok: true
equal: true
deepEqual: true
notEqual: true
asyncTest: true
test: true
expect: true
testUtil: true
options: @file.readJSON ".jshintrc"
qunit:
options:
"--web-security": "no"
coverage:
src: ["backbone.layoutmanager.js"]
instrumentedFiles: "test/tmp"
htmlReport: "test/report/coverage"
coberturaReport: "test/report"
lcovReport: "test/report"
linesThresholdPct: 85
files: ["test/index.html"]
nodequnit:
files: ["test/spec/*.js", "!test/spec/dom.js"]
options:
deps: ["test/util/util.js"]
code: "."
testsDir: "test/spec/"
benchmark:
options:
displayResults: true
all:
src: ["test/benchmark/*.js"]
dest: "test/report/benchmark_results.csv"
# Plugins.
@loadNpmTasks "grunt-contrib-clean"
@loadNpmTasks "grunt-contrib-jshint"
@loadNpmTasks "grunt-qunit-istanbul"
@loadNpmTasks "grunt-nodequnit"
@loadNpmTasks "grunt-benchmark"
# Tasks.
@registerTask "default", [
"clean", "jshint", "qunit", "nodequnit", "benchmark"
]