[ReactNative] Add option to file watcher to ignore node_modules
This commit is contained in:
parent
4fc15dbf17
commit
21b3304a95
|
@ -59,7 +59,7 @@
|
||||||
"react-timer-mixin": "^0.13.1",
|
"react-timer-mixin": "^0.13.1",
|
||||||
"react-tools": "0.13.2",
|
"react-tools": "0.13.2",
|
||||||
"rebound": "^0.0.12",
|
"rebound": "^0.0.12",
|
||||||
"sane": "^1.1.2",
|
"sane": "git://github.com/tadeuzagallo/sane.git#c2c8672928",
|
||||||
"source-map": "0.1.31",
|
"source-map": "0.1.31",
|
||||||
"stacktrace-parser": "git://github.com/frantic/stacktrace-parser.git#493c5e5638",
|
"stacktrace-parser": "git://github.com/frantic/stacktrace-parser.git#493c5e5638",
|
||||||
"uglify-js": "~2.4.16",
|
"uglify-js": "~2.4.16",
|
||||||
|
|
|
@ -67,6 +67,7 @@ function createWatcher(rootConfig) {
|
||||||
var watcher = new Watcher(rootConfig.dir, {
|
var watcher = new Watcher(rootConfig.dir, {
|
||||||
glob: rootConfig.globs,
|
glob: rootConfig.globs,
|
||||||
dot: false,
|
dot: false,
|
||||||
|
ignore: 'node_modules',
|
||||||
});
|
});
|
||||||
|
|
||||||
return new Promise(function(resolve, reject) {
|
return new Promise(function(resolve, reject) {
|
||||||
|
|
Loading…
Reference in New Issue