-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake_nice.sh
More file actions
executable file
·27 lines (19 loc) · 849 Bytes
/
make_nice.sh
File metadata and controls
executable file
·27 lines (19 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#PATH=$PATH:/var/www/grbtool/node_modules/.bin
PATH=$PATH:/home/glenn/repos/grbtool/node_modules/.bin
# Bake the pizza
echo "Building pizza.js"
# browserify node_modules/geojsontoosm/index.js -d --s geos > public/js/pizza.js
# don't override this, I made a custom fix that we need, work for later figuring the build of this js
echo "Building mapshaper.js"
# Bake the mapshaper
browserify node_modules/mapshaper/www/mapshaper.js --s mapshaper | uglifyjs > public/js/mapshaper.js
browserify public/js/mturf.js -s mturf > public/js/mt.js
echo "Building trf.js"
# Bake the wrdiff stuff
browserify public/js/wrdiff.js --s tf > public/js/trf.js
for file in public/js/*.js ; do
js-beautify -s 4 -P -m 3 -r -k -f $file
done
# make geojson-merge
# browserify node_modules/@mapbox/geojson-merge/ -d --s gmerge -o public/js/gmerge.js