-
Notifications
You must be signed in to change notification settings - Fork 7
/
Gruntfile.coffee
38 lines (29 loc) · 1008 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
# 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
jshint:
all: ["tasks/*.js", "<%= nodeunit.tests %>"]
options:
jshintrc: ".jshintrc"
# Configuration to be run (and then tested).
server:
default:
options:
forever: false
# Unit tests.
nodeunit:
tests: ["test/*.js"]
# Actually load this plugin's task(s).
@loadTasks "tasks"
# These plugins provide necessary tasks.
@loadNpmTasks "grunt-contrib-jshint"
@loadNpmTasks "grunt-contrib-nodeunit"
# Whenever the "test" task is run, first clean the "tmp" dir, then run this
# plugin's task(s), then test the result.
@registerTask "test", ["server", "nodeunit"]
# By default, lint and run all tests.
@registerTask "default", ["jshint", "test"]