From c2008de5e302bb36c125f2b3b68acdcfa0295d8c Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 17 Sep 2014 14:09:25 +0100 Subject: Add bash script to build without grunt --- build-without-grunt.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 build-without-grunt.sh diff --git a/build-without-grunt.sh b/build-without-grunt.sh new file mode 100755 index 0000000..b5956eb --- /dev/null +++ b/build-without-grunt.sh @@ -0,0 +1,37 @@ +#!/bin/bash -x + +rm -fr dist +mkdir dist + +cat libraries/jquery/dist/jquery.js \ +libraries/bootstrap/dist/js/bootstrap.js \ +libraries/typeahead.js/dist/typeahead.bundle.js libraries/list.js/dist/list.js \ +libraries/leaflet-soton/resources/leaflet/dist/leaflet.js \ +libraries/leaflet-soton/resources/leaflet-markercluster/dist/leaflet.markercluster.js \ +libraries/leaflet-soton/resources/leaflet-locatecontrol/src/L.Control.Locate.js \ +libraries/leaflet-soton/resources/leaflet-hash/leaflet-hash.js \ +libraries/leaflet-soton/resources/leaflet-indoor/leaflet-indoor.js \ +libraries/leaflet-soton/resources/leaflet-route/leaflet-route.js \ +libraries/leaflet-soton/src/leaflet-soton.js \ +scripts.js > dist/scripts.js + +mkdir dist/css + +cat libraries/bootstrap/dist/css/bootstrap.css \ +libraries/leaflet-soton/resources/leaflet/dist/leaflet.css \ +libraries/leaflet-soton/resources/leaflet-markercluster/dist/MarkerCluster.css \ +libraries/leaflet-soton/resources/leaflet-locatecontrol/src/L.Control.Locate.css \ +libraries/leaflet-soton/src/leaflet-soton.css \ +style.css > dist/css/style.css + +cp index.html dist/index.html + +cp -r libraries/bootstrap/dist/fonts dist/fonts + +cp -r libraries/leaflet-soton/resources/images dist/images + +cp -r libraries/leaflet-soton/resources/images/logos dist/images/logos + +cp -r libraries/leaflet-soton/resources/leaflet-locatecontrol/src/images dist/css/images + +cp libraries/leaflet-soton/data.json dist/data.json -- cgit v1.2.3