Skip to content

Commit 3f15f7b

Browse files
author
Chris Moultrie
committed
Updating to latest grunt to fix unit testing problems
1 parent c9f14d4 commit 3f15f7b

File tree

3 files changed

+66
-68
lines changed

3 files changed

+66
-68
lines changed

Gruntfile.js

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
module.exports = function (grunt) {
2+
"use strict";
3+
// Project configuration.
4+
grunt.initConfig({
5+
pkg: '<json:package.json>',
6+
jasmine_node: {
7+
all: ["./spec"],
8+
options: {
9+
forceExit: false,
10+
extensions: 'coffee',
11+
jUnit: {
12+
report: false,
13+
savePath : "./build/reports/jasmine/",
14+
useDotNotation: true,
15+
consolidate: true
16+
}
17+
}
18+
},
19+
docco: {
20+
app: {
21+
src: ['lib/*.js']
22+
}
23+
},
24+
watch: {
25+
files: ['lib/**/*.js', 'spec/**/*.coffee'],
26+
tasks: 'default'
27+
},
28+
jslint: {
29+
client: {
30+
src: ['./Gruntfile.js', 'lib/**/*.js'],
31+
directives: {
32+
indent: 2,
33+
curly: true,
34+
eqeqeq: true,
35+
eqnull: true,
36+
immed: true,
37+
latedef: true,
38+
newcap: true,
39+
noarg: true,
40+
sub: true,
41+
undef: true,
42+
unused: true,
43+
boss: true,
44+
browser: true,
45+
predef: ['module', 'require', 'console', 'exports']
46+
}
47+
}
48+
}
49+
});
50+
51+
// Default task.
52+
grunt.registerTask('default', ['jslint', 'jasmine_node', 'docco']);
53+
grunt.registerTask('prepare', 'default bump');
54+
grunt.registerTask('test', 'jasmine_node');
55+
56+
grunt.loadNpmTasks('grunt-jasmine-node');
57+
grunt.loadNpmTasks('grunt-docco');
58+
grunt.loadNpmTasks('grunt-bump');
59+
grunt.loadNpmTasks('grunt-jslint');
60+
};

grunt.js

Lines changed: 0 additions & 63 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@
2828
"test": "grunt test"
2929
},
3030
"devDependencies": {
31-
"grunt": "~0.3.17",
32-
"grunt-bump": "0.0.1",
33-
"grunt-docco": "~0.1.2",
34-
"grunt-jasmine-node": ">=0.0.6",
35-
"coffee-script": "~1.4.0"
31+
"grunt": "^0.4.4",
32+
"grunt-bump": "0.0.13",
33+
"grunt-docco": "^0.3.3",
34+
"grunt-jasmine-node": "^0.2.1",
35+
"coffee-script": "^1.7.1",
36+
"grunt-jslint": "^1.1.8"
3637
}
3738
}

0 commit comments

Comments
 (0)