forked from tbranyen/backbone.layoutmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
41 lines (33 loc) · 1.05 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
# Grunt configuration updated to latest Grunt. That means your minimum
# version necessary to run these tasks is Grunt 0.4.
#
# Please install this locally and install `grunt-cli` globally to run.
module.exports = ->
# Initialize the configuration.
@initConfig
# Lint source, node, and test code with some sane options.
jshint:
files: ["backbone.layoutmanager.js", "node/index.js"]
# Allow certain options.
options:
browser: true
boss: true
immed: false
eqnull: true
globals: {}
# Run QUnit tests for browser environments.
qunit:
files: ["test/index.html"]
# Run QUnit tests for Node.js environments.
nodequnit:
files: ["test/*.js", "!test/dom.js"]
options:
deps: ["test/vendor/util.js"]
code: "."
testsDir: "test/"
# Load external Grunt task plugins.
@loadNpmTasks "grunt-contrib-jshint"
@loadNpmTasks "grunt-contrib-qunit"
@loadNpmTasks "grunt-nodequnit"
# Default task.
@registerTask "default", ["jshint", "qunit", "nodequnit"]