Created
December 20, 2014 11:10
-
-
Save jvanderbiest/b41f21dbdb6b0139e40a to your computer and use it in GitHub Desktop.
Grunt configuration file for Codit.Blog.JsVsoBuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
karma: { | |
unit: { | |
configFile: 'karma.phantomjs.conf.js' | |
} | |
}, | |
jshint: { | |
all: ['Gruntfile.js', 'Codit.Blog.JsVsoBuild/app/**/*.js', 'Codit.Blog.JsVsoBuild/test/**/*.js'], | |
options: { | |
reporter: require('jshint-html-reporter'), | |
reporterOutput: 'tests/jshint_validation.html' | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-contrib-jshint'); | |
grunt.loadNpmTasks('grunt-karma'); | |
// Default task(s). | |
grunt.registerTask('default', ['karma']); | |
grunt.registerTask('test', ['karma']); | |
grunt.registerTask('validate', ['jshint']); | |
grunt.registerTask('release', ['karma', 'jshint']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment