Created
August 7, 2015 20:54
-
-
Save Gattermeier/2da43b6ceeb60610336a to your computer and use it in GitHub Desktop.
If you use grunt, you can use the grunt-contrib-watch plugin to watch for file changes and run your tests automagically. Your Gruntfile.js should look something like this.
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({ | |
jshint: { | |
files: [], | |
}, | |
watch: { | |
files: ['src/**/*.js'], | |
tasks: ['jshint'] | |
} | |
}); | |
grunt.loadNpmTasks('grunt-contrib-jshint'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.registerTask('default', ['watch']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment