Ignore the output files of buildData.js

This commit is contained in:
Kushan Joshi
2017-09-25 17:35:04 +05:30
parent 9b008a32a1
commit 07ac2a372f
+19 -5
View File
@@ -22,11 +22,25 @@ if (isDevelopment) {
});
});
gaze(['data/**/*.{js,json}'], function(err, watcher) {
watcher.on('all', function() {
buildData();
});
});
gaze(
[
'data/**/*.{js,json}',
// ignore the output files of `buildData`
'!data/presets/categories.json',
'!data/presets/fields.json',
'!data/presets/presets.json',
'!data/presets.yaml',
'!data/taginfo.json',
'!dist/locales/en.json'
],
function(err, watcher) {
watcher.on('all', function() {
buildData();
// need to recompute js files when data changes
buildSrc();
});
}
);
gaze(['modules/**/*.js'], function(err, watcher) {
watcher.on('all', function() {