Skip to content

Instantly share code, notes, and snippets.

@fakiolinho
Created April 6, 2014 12:27
Show Gist options
  • Save fakiolinho/10005326 to your computer and use it in GitHub Desktop.
Save fakiolinho/10005326 to your computer and use it in GitHub Desktop.
Grunt: Jasmine - Coffeescript
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
coffee: {
compile: {
files: {
'js/faki.js': 'js/coffee/faki.coffee',
'js/specs/fakiSpec.js': 'js/coffee/fakiSpec.coffee'
}
}
},
jasmine: {
pivotal: {
src: 'js/*.js',
options: {
vendor: [
'js/jquery-1.11.0.min.js',
'js/helpers/jasmine-jquery.js'
],
specs: 'js/specs/*Spec.js'
}
}
},
watch: {
files: ['js/coffee/*.coffee'],
tasks: ['coffee', 'jasmine']
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.registerTask('test', ['jasmine']);
grunt.registerTask('default', ['watch', 'coffee', 'jasmine']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment