X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/dbc24abdc1e9d4d7dce8c8ad794c847293a4d512..b7e33cdc29352afbad1e5d945d797fe0295c189e:/build.sh?ds=sidebyside diff --git a/build.sh b/build.sh index 964a501..229bb6d 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,29 @@ #!/bin/bash -rsync --quiet --recursive src/assets dist/ -rsync --quiet --recursive src/vendor/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/ +mkdir -p dist/assets/ +rsync --quiet --recursive src/assets/css/ dist/assets/css/ +rsync --quiet --recursive src/assets/images/ dist/assets/images/ + +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 node_modules/jquery/dist/jquery.min.js dist/assets/js/ +rsync --quiet node_modules/leaflet/dist/leaflet.js dist/assets/js/ +rsync --quiet node_modules/leaflet/dist/leaflet.js.map dist/assets/js/ +rsync --quiet node_modules/leaflet/dist/leaflet.css dist/assets/css/ +rsync --quiet node_modules/leaflet/dist/images/* dist/assets/css/images/ + +rsync --quiet node_modules/leaflet-minimap/dist/Control.MiniMap.min.js dist/assets/js/ +rsync --quiet node_modules/leaflet-minimap/dist/Control.MiniMap.min.css dist/assets/css/ +rsync --quiet node_modules/leaflet-minimap/dist/images/* dist/assets/css/images/ + +rsync --quiet node_modules/bootstrap/dist/js/bootstrap.min.js dist/assets/js/ +rsync --quiet node_modules/bootstrap/dist/css/bootstrap.min.css dist/assets/css/ +rsync --quiet node_modules/bootstrap/dist/css/bootstrap-theme.min.css dist/assets/css/ + +rsync --quiet node_modules/handlebars/dist/handlebars.min.js dist/assets/js/ +rsync --quiet node_modules/@ungap/url-search-params/min.js dist/assets/js/url-search-params.js +rsync --quiet src/templates/*.hbs dist/ rsync --quiet src/*.js dist/ @@ -15,4 +33,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/