Skip to content

Commit

Permalink
Added jasmine_node grunt task
Browse files Browse the repository at this point in the history
  • Loading branch information
badsyntax committed Jun 6, 2013
1 parent 9fc76a2 commit 86383d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions GruntFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = function(grunt) {
' * Copyright (c) 2013 Richard Willis; Licensed MIT\n' +
' */\n';

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
Expand Down Expand Up @@ -59,17 +58,22 @@ module.exports = function(grunt) {
}
}
}
},
jasmine_node: {
specNameMatcher: 'spec',
projectRoot: 'spec/'
}
});

// Load the tasks
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-jasmine-node');

// Register custom tasks
grunt.registerTask('lint', ['jshint']);
grunt.registerTask('test', ['lint', 'jasmine']);
grunt.registerTask('test', ['lint', 'jasmine', 'jasmine_node']);
grunt.registerTask('build', ['test', 'uglify']);
grunt.registerTask('default', ['build']);
};
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"grunt-contrib-uglify": "~0.1.2rc7",
"grunt-contrib-jshint": "~0.1.1",
"grunt-contrib-jasmine": "~0.3.3",
"grunt-template-jasmine-requirejs": "~0.1.2"
"grunt-template-jasmine-requirejs": "~0.1.2",
"grunt-jasmine-node": "~0.1.0",
"handlebars": "~1.0.12"
}
}
}

0 comments on commit 86383d2

Please sign in to comment.