]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - build.sh
detailspage permalink: use category for class key (what the API returns)
[nominatim-ui.git] / build.sh
index f8df67aa693b0fbfd1fa077e7e8c83dcd5710108..b2cd8f3ce0c341b4a2e82a42717e95adf90cfbbb 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1,8 +1,25 @@
 #!/bin/bash
 
-# mkdir dist/
+mkdir -p dist/assets/
+rsync --quiet --recursive src/assets/css/ dist/assets/css/
+rsync --quiet --recursive src/assets/images/ dist/assets/images/
 
-rsync --quiet --recursive src/assets dist/
+mkdir -p dist/assets/js/
+cat src/assets/js/base.js src/assets/js/detailpage.js src/assets/js/searchpage.js > dist/assets/js/nominatim-ui.js
+
+rsync --quiet --recursive src/vendor/js/* dist/assets/js/
+rsync --quiet --recursive node_modules/jquery/dist/jquery.min.js dist/assets/js/
+rsync --quiet --recursive node_modules/leaflet/dist/leaflet.js dist/assets/js/
+rsync --quiet --recursive node_modules/leaflet/dist/leaflet.js.map dist/assets/js/
+rsync --quiet --recursive node_modules/leaflet/dist/leaflet.css dist/assets/css/
+rsync --quiet --recursive node_modules/leaflet/dist/images/ dist/assets/css/images/
+rsync --quiet --recursive node_modules/bootstrap/dist/js/bootstrap.min.js dist/assets/js/
+rsync --quiet --recursive node_modules/bootstrap/dist/css/bootstrap.min.css dist/assets/css/
+rsync --quiet --recursive node_modules/bootstrap/dist/css/bootstrap-theme.min.css dist/assets/css/
+
+rsync --quiet --recursive node_modules/handlebars/dist/handlebars.min.js dist/assets/js/
+rsync --quiet --recursive src/vendor/css/* dist/assets/css/
+# rsync --quiet --recursive src/vendor/images/* dist/assets/images/
 rsync --quiet --recursive src/templates dist/
 # rsync --quiet --recursive src/partials dist/
 
@@ -14,4 +31,4 @@ cat src/layout.html | perl -pe'use File::Slurper qw(read_text); s/\@include\((.+
 cat /tmp/included.html | perl -pe's/BODYID/search-page/g' > dist/search.html
 cat /tmp/included.html | perl -pe's/BODYID/reverse-page/g' > dist/reverse.html
 cat /tmp/included.html | perl -pe's/BODYID/details-page/g' > dist/details.html
-
+cp src/index.html dist/