Created
August 15, 2013 18:20
-
-
Save peterssonjesper/6243298 to your computer and use it in GitHub Desktop.
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) { | |
// Project configuration. | |
grunt.initConfig({ | |
// Metadata. | |
pkg: grunt.file.readJSON('package.json'), | |
// Task configuration. | |
jasmine: { | |
all: { | |
src: [ | |
'public/javascripts/src/**/*.js', | |
], | |
options: { | |
'vendor': 'public/javascripts/libs/**/*.js', | |
'specs': 'public/javascripts/spec/**/*.js' | |
} | |
}, | |
istanbul: { | |
src: '<%= jasmine.all.src %>', | |
options: { | |
vendor: '<%= jasmine.all.options.vendor %>', | |
specs: '<%= jasmine.all.options.specs %>', | |
template: require('grunt-template-jasmine-istanbul'), | |
templateOptions: { | |
coverage: 'coverage/json/coverage.json', | |
report: [ | |
{type: 'html', options: {dir: 'coverage/html'}}, | |
{type: 'text-summary'} | |
] | |
} | |
} | |
} | |
}, | |
watch: { | |
js: { | |
files: [ | |
'public/javascripts/src/**/*.js', | |
'public/javascripts/spec/**/*.js' | |
], | |
tasks: ['jasmine:all'] | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-contrib-jasmine'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.registerTask('test', ['jasmine:all']); | |
grunt.registerTask('coverage', ['jasmine:istanbul']); | |
grunt.registerTask('default', ['watch']); | |
}; |
how to mention these files are not to test... Suggest some idea.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
awesome!