mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Don't check in as many data/ generated files, less agressive minification
(partial revert of c2833ba to help prevent merge conflicts)
This commit is contained in:
+44697
-1
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"category-building":{"geometry":"area","name":"Building","icon":"building","members":["building/house","building/apartments","building/commercial","building/industrial","building/residential","building"]},"category-golf":{"geometry":"area","name":"Golf","icon":"golf","members":["golf/fairway","golf/green","golf/lateral_water_hazard","golf/rough","golf/bunker","golf/tee","golf/water_hazard"]},"category-landuse":{"geometry":"area","name":"Land Use","icon":"land-use","members":["landuse/residential","landuse/industrial","landuse/commercial","landuse/retail","landuse/farmland","landuse/farmyard","landuse/forest","landuse/meadow","landuse/cemetery","landuse/military"]},"category-path":{"geometry":"line","name":"Path","icon":"category-path","members":["highway/pedestrian","highway/footway","highway/cycleway","highway/bridleway","highway/path","highway/steps"]},"category-rail":{"geometry":"line","name":"Rail","icon":"category-rail","members":["railway/rail","railway/subway","railway/tram","railway/monorail","railway/disused","railway/abandoned"]},"category-restriction":{"geometry":"relation","name":"Restriction","icon":"restriction","members":["type/restriction/no_left_turn","type/restriction/no_right_turn","type/restriction/no_straight_on","type/restriction/no_u_turn","type/restriction/only_left_turn","type/restriction/only_right_turn","type/restriction/only_straight_on","type/restriction"]},"category-road":{"geometry":"line","name":"Road","icon":"category-roads","members":["highway/residential","highway/motorway","highway/trunk","highway/primary","highway/secondary","highway/tertiary","highway/service","highway/motorway_link","highway/trunk_link","highway/primary_link","highway/secondary_link","highway/tertiary_link","highway/unclassified","highway/track","highway/road"]},"category-route":{"geometry":"relation","name":"Route","icon":"route","members":["type/route/road","type/route/bicycle","type/route/foot","type/route/hiking","type/route/bus","type/route/train","type/route/tram","type/route/ferry","type/route/power","type/route/pipeline","type/route/detour","type/route_master","type/route"]},"category-water-area":{"geometry":"area","name":"Water","icon":"water","members":["natural/water/lake","natural/water/pond","natural/water/reservoir","natural/water"]},"category-water-line":{"geometry":"line","name":"Water","icon":"category-water","members":["waterway/river","waterway/stream","waterway/canal","waterway/ditch","waterway/drain"]}}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2497
-1
File diff suppressed because one or more lines are too long
@@ -102,4 +102,4 @@ imagery.sort(function(a, b) {
|
||||
return a.name.localeCompare(b.name);
|
||||
});
|
||||
|
||||
fs.writeFileSync('data/imagery.json', JSON.stringify(imagery));
|
||||
fs.writeFileSync('data/imagery.json', JSON.stringify(imagery, null, 1));
|
||||
|
||||
@@ -38,10 +38,10 @@ asyncMap(resources, getResource, function(err, locales) {
|
||||
for (var i in locale) {
|
||||
if (i === 'en' || _.isEmpty(locale[i])) continue;
|
||||
codes.push(i);
|
||||
fs.writeFileSync(outdir + i + '.json', JSON.stringify(locale[i]));
|
||||
fs.writeFileSync(outdir + i + '.json', JSON.stringify(locale[i], null, 1));
|
||||
}
|
||||
|
||||
fs.writeFileSync('data/locales.json', JSON.stringify(codes));
|
||||
fs.writeFileSync('data/locales.json', JSON.stringify(codes, null, 1));
|
||||
});
|
||||
|
||||
function getResource(resource, callback) {
|
||||
|
||||
Reference in New Issue
Block a user