mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Ignore the output files of buildData.js
This commit is contained in:
+19
-5
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user