]> git.openstreetmap.org Git - rails.git/blob - Vendorfile
Move leaflet to be a yarn managed asset
[rails.git] / Vendorfile
1 folder 'vendor/assets' do
2   folder 'jquery' do
3     file 'jquery.cookie.js', 'https://raw.githubusercontent.com/carhartl/jquery-cookie/master/src/jquery.cookie.js'
4     file 'jquery.throttle-debounce.js', 'https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/v1.1/jquery.ba-throttle-debounce.js'
5   end
6
7   folder 'leaflet' do
8     from 'git://github.com/aratcliffe/Leaflet.contextmenu.git', :tag => 'v1.5.1' do
9       file 'leaflet.contextmenu.js', 'dist/leaflet.contextmenu.js'
10       file 'leaflet.contextmenu.css', 'dist/leaflet.contextmenu.css'
11     end
12
13     from 'git://github.com/kajic/leaflet-locationfilter.git' do
14       file 'leaflet.locationfilter.css', 'src/locationfilter.css'
15       file 'leaflet.locationfilter.js', 'src/locationfilter.js'
16       folder 'img', 'src/img'
17     end
18
19     from 'git://github.com/domoritz/leaflet-locatecontrol.git', :tag => 'v0.71.0' do
20       file 'leaflet.locate.js', 'src/L.Control.Locate.js'
21     end
22
23     from 'git://github.com/jfirebaugh/leaflet-osm.git' do
24       file 'leaflet.osm.js', 'leaflet-osm.js'
25     end
26
27     from 'git://github.com/jieter/Leaflet.encoded.git', :tag => '0.0.9' do
28       file 'leaflet.polyline.js', 'Polyline.encoded.js'
29     end
30   end
31
32   folder 'ohauth' do
33     from 'git://github.com/osmlab/ohauth.git' do
34       file 'ohauth.js'
35     end
36   end
37
38   folder 'iD' do
39     from 'git://github.com/openstreetmap/iD', :branch => 'release' do
40       folder 'iD/data', 'dist/data'
41       folder 'iD/img', 'dist/img'
42       folder 'iD/locales', 'dist/locales'
43       folder 'iD/mapillary-js', 'dist/mapillary-js'
44       folder 'iD/pannellum-streetside', 'dist/pannellum-streetside'
45
46       file 'iD.css.erb', 'dist/iD.css' do |path|
47         rewrite(path) do |content|
48           content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)')
49         end
50       end
51
52       file 'iD.js', 'dist/iD.legacy.js'
53     end
54   end
55
56   folder 'polyfill' do
57     file 'es5.js', 'https://polyfill.io/v3/polyfill.js?features=es5&flags=gated,always'
58     file 'es6.js', 'https://polyfill.io/v3/polyfill.js?features=es6&flags=gated,always'
59   end
60
61   folder 'swfobject' do
62     from 'git://github.com/swfobject/swfobject.git', :tag => '2.2' do
63       file 'expressInstall.swf', 'swfobject/expressInstall.swf'
64       file 'swfobject.js', 'swfobject/src/swfobject.js'
65     end
66   end
67 end