]> git.openstreetmap.org Git - rails.git/blob - Vendorfile
Move leaflet.locatecontrol 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/jfirebaugh/leaflet-osm.git' do
20       file 'leaflet.osm.js', 'leaflet-osm.js'
21     end
22
23     from 'git://github.com/jieter/Leaflet.encoded.git', :tag => '0.0.9' do
24       file 'leaflet.polyline.js', 'Polyline.encoded.js'
25     end
26   end
27
28   folder 'ohauth' do
29     from 'git://github.com/osmlab/ohauth.git' do
30       file 'ohauth.js'
31     end
32   end
33
34   folder 'iD' do
35     from 'git://github.com/openstreetmap/iD', :branch => 'release' do
36       folder 'iD/data', 'dist/data'
37       folder 'iD/img', 'dist/img'
38       folder 'iD/locales', 'dist/locales'
39       folder 'iD/mapillary-js', 'dist/mapillary-js'
40       folder 'iD/pannellum-streetside', 'dist/pannellum-streetside'
41
42       file 'iD.css.erb', 'dist/iD.css' do |path|
43         rewrite(path) do |content|
44           content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)')
45         end
46       end
47
48       file 'iD.js', 'dist/iD.legacy.js'
49     end
50   end
51
52   folder 'polyfill' do
53     file 'es5.js', 'https://polyfill.io/v3/polyfill.js?features=es5&flags=gated,always'
54     file 'es6.js', 'https://polyfill.io/v3/polyfill.js?features=es6&flags=gated,always'
55   end
56
57   folder 'swfobject' do
58     from 'git://github.com/swfobject/swfobject.git', :tag => '2.2' do
59       file 'expressInstall.swf', 'swfobject/expressInstall.swf'
60       file 'swfobject.js', 'swfobject/src/swfobject.js'
61     end
62   end
63 end