Skip to content

Instantly share code, notes, and snippets.

@ferclaverino
Created July 8, 2013 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferclaverino/5947995 to your computer and use it in GitHub Desktop.
Save ferclaverino/5947995 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
mochacli: {
options: {
reporter: 'nyan',
bail: true
},
all: ['test/*.js']
},
jshint: {
ignore_warning: {
options: {
'-W051': true,
},
src: ['*.js']
},
all: ['Gruntfile.js', 'test/**/*.js']
}
});
grunt.loadNpmTasks('grunt-mocha-cli');
grunt.loadNpmTasks('grunt-contrib-jshint');
// Add a default task. This is optional, of course :)
grunt.registerTask('default', ['mochacli', 'jshint']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment