grunt-contrib-watch 监控 JS 文件改变来运行预定义的Tasks
依赖于 GruntJs ~0.4.0
监控 JS 文件改变来运行预定义的Tasks
Demo:
watch: {
scripts: {
files: ['src/**/*.js'],
tasks: ['jshint'],
options: {
spawn: false
}
}
},
引用: https://www.npmjs.com/package/grunt-contrib-watch
To be a better man.