Permalink
Browse files

Updating to latest grunt to fix unit testing problems

  • Loading branch information...
Chris Moultrie
Chris Moultrie committed Mar 29, 2014
1 parent c9f14d4 commit 3f15f7b2cca7576c14ada96661cc12fa30474195
Showing with 66 additions and 68 deletions.
  1. +60 −0 Gruntfile.js
  2. +0 −63 grunt.js
  3. +6 −5 package.json
View
@@ -0,0 +1,60 @@
module.exports = function (grunt) {
"use strict";
// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
jasmine_node: {
all: ["./spec"],
options: {
forceExit: false,
extensions: 'coffee',
jUnit: {
report: false,
savePath : "./build/reports/jasmine/",
useDotNotation: true,
consolidate: true
}
}
},
docco: {
app: {
src: ['lib/*.js']
}
},
watch: {
files: ['lib/**/*.js', 'spec/**/*.coffee'],
tasks: 'default'
},
jslint: {
client: {
src: ['./Gruntfile.js', 'lib/**/*.js'],
directives: {
indent: 2,
curly: true,
eqeqeq: true,
eqnull: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
unused: true,
boss: true,
browser: true,
predef: ['module', 'require', 'console', 'exports']
}
}
}
});
// Default task.
grunt.registerTask('default', ['jslint', 'jasmine_node', 'docco']);
grunt.registerTask('prepare', 'default bump');
grunt.registerTask('test', 'jasmine_node');
grunt.loadNpmTasks('grunt-jasmine-node');
grunt.loadNpmTasks('grunt-docco');
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-jslint');
};
View

This file was deleted.

Oops, something went wrong.
View
@@ -28,10 +28,11 @@
"test": "grunt test"
},
"devDependencies": {
"grunt": "~0.3.17",
"grunt-bump": "0.0.1",
"grunt-docco": "~0.1.2",
"grunt-jasmine-node": ">=0.0.6",
"coffee-script": "~1.4.0"
"grunt": "^0.4.4",
"grunt-bump": "0.0.13",
"grunt-docco": "^0.3.3",
"grunt-jasmine-node": "^0.2.1",
"coffee-script": "^1.7.1",
"grunt-jslint": "^1.1.8"
}
}

0 comments on commit 3f15f7b

Please sign in to comment.