基本的には全フォルダを監視対象にしたいけど、Yeoman,Grunt,Bower,etc... が生成するフォルダを監視対象から外したい。
node_modules/
を監視対象から外す場合
module.exports = (grunt) ->
grunt.initConfig
...
esteWatch:
options:
dirs:['*/','!node_modules/','*/**/','!node_modules/**/']
...
node_modules/
hoge/
fuga/
を監視対象から外す場合
module.exports = (grunt) ->
grunt.initConfig
...
esteWatch:
options:
dirs:['*/','!{node_modules,hoge,fuga}/','*/**/','!{node_modules,hoge,fuga}/**/']
...