]> git.openstreetmap.org Git - rails.git/blob - Vendorfile
Merge remote-tracking branch 'upstream/pull/6463'
[rails.git] / Vendorfile
1 folder 'vendor/assets' do
2   folder 'jquery' do
3     file 'jquery.throttle-debounce.js', 'https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/v1.1/jquery.ba-throttle-debounce.js'
4   end
5
6   folder 'leaflet' do
7     from 'https://github.com/kajic/leaflet-locationfilter.git' do
8       file 'leaflet.locationfilter.css', 'src/locationfilter.css'
9       file 'leaflet.locationfilter.js', 'src/locationfilter.js'
10       folder 'img', 'src/img'
11     end
12
13     from 'https://github.com/openstreetmap/leaflet-osm.git' do
14       file 'leaflet.osm.js', 'leaflet-osm.js'
15     end
16
17     from 'https://github.com/jieter/Leaflet.encoded.git', :tag => '0.0.9' do
18       file 'leaflet.polyline.js', 'Polyline.encoded.js'
19     end
20   end
21
22   folder 'iD' do
23     from 'https://github.com/openstreetmap/iD', :branch => 'release' do
24       folder 'iD/data', 'dist/data'
25       folder 'iD/img', 'dist/img'
26       folder 'iD/locales', 'dist/locales'
27       folder 'iD/mapillary-js', 'dist/mapillary-js'
28       folder 'iD/pannellum', 'dist/pannellum'
29
30       file 'iD.css.erb', 'dist/iD.css' do |path|
31         rewrite(path) do |content|
32           content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)')
33         end
34       end
35
36       file 'iD.js', 'dist/iD.js'
37     end
38   end
39 end