Created
April 15, 2015 06:19
-
-
Save gpickin/1e1e7902d1d3676d23c5 to your computer and use it in GitHub Desktop.
gruntfile.js - Example of Jasmine with Grunt Watch
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
// 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