aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2014-09-17 14:09:25 +0100
committerChristopher Baines <mail@cbaines.net>2014-09-17 14:09:25 +0100
commitc2008de5e302bb36c125f2b3b68acdcfa0295d8c (patch)
tree077ce2fbcf09871bf9502bb7f7cab5b06e4e8b6f
parent60693b02cf88187222ea605258cba82dd8a6025f (diff)
downloadmaps.southampton.ac.uk-c2008de5e302bb36c125f2b3b68acdcfa0295d8c.tar
maps.southampton.ac.uk-c2008de5e302bb36c125f2b3b68acdcfa0295d8c.tar.gz
Add bash script to build without grunt
-rwxr-xr-xbuild-without-grunt.sh37
1 files changed, 37 insertions, 0 deletions
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