Skip to content

Instantly share code, notes, and snippets.

@gpickin
Created April 15, 2015 06:19
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 gpickin/1e1e7902d1d3676d23c5 to your computer and use it in GitHub Desktop.
Save gpickin/1e1e7902d1d3676d23c5 to your computer and use it in GitHub Desktop.
gruntfile.js - Example of Jasmine with Grunt Watch
// Original Source: http://www.meanstack.co/setting-up-jasmine-and-grunt/
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('node_modules/grunt/package.json'),
jasmine: {
all: {
src: ['js/*.js' ],
options: {
//'vendor': ['path/to/vendor/libs/*.js'],
'specs': ['specs/*.js' ]
}
}
},
watch: {
js: {
files: [
'js/*.js',
'specs/*.js',
],
tasks: ['jasmine:all']
}
}
});
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-watch');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment