Skip to content

Instantly share code, notes, and snippets.

@pghalliday
Created October 17, 2012 22:11
Show Gist options
  • Save pghalliday/3908655 to your computer and use it in GitHub Desktop.
Save pghalliday/3908655 to your computer and use it in GitHub Desktop.
grunt-contrib-watch not detecting added files issue
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.initConfig({
lint: {
files: ['grunt.js', 'src/**/*.js']
},
watch: {
scripts: {
files: ['<config:lint.files>'],
tasks: ['default']
}
}
});
grunt.registerTask('default', 'lint');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment