]> git.openstreetmap.org Git - rails.git/blob - Vendorfile
Remove unused styles
[rails.git] / Vendorfile
1 folder 'vendor/assets' do
2   folder 'leaflet' do
3     file 'leaflet.js', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet-src.js'
4     file 'leaflet.css', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet.css'
5     file 'leaflet.ie.css', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet.ie.css'
6
7     [ 'layers.png', 'layers-2x.png',
8       'marker-icon.png', 'marker-icon-2x.png',
9       'marker-shadow.png' ].each do |image|
10       file "images/#{image}", "http://cdn.leafletjs.com/leaflet-0.6.3/images/#{image}"
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   end
23
24   folder 'jquery' do
25     from 'git://github.com/jevin/Autogrow-Textarea.git' do
26       file 'jquery.autogrowtextarea.js', 'jquery.autogrowtextarea.js'
27     end
28   end
29
30   folder 'ohauth' do
31     from 'git://github.com/osmlab/ohauth.git' do
32       file 'ohauth.js'
33     end
34   end
35
36   folder 'iD' do
37     from 'git://github.com/systemed/iD', :branch => 'release' do
38       folder 'iD/img', 'dist/img'
39       folder 'iD/locales', 'dist/locales'
40       file 'iD.css.erb', 'dist/iD.css' do |path|
41         rewrite(path) { |content| content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)') }
42       end
43       file 'iD.js', 'dist/iD.js'
44     end
45   end
46 end