Avoid frequent npm install in sample deploy.sh, it wastes /tmp space

This commit is contained in:
Bryan Housel
2017-06-20 13:34:48 -04:00
parent eff9aaeceb
commit f55f7325d5
+4 -2
View File
@@ -22,14 +22,16 @@ if [[ "${rev}" != "${orig}" ]] ; then
rev=`git rev-parse --short HEAD`
sed -i "s/context.version = .*;/context.version = '${rev}';/" modules/core/context.js
npm prune
npm install
fi
# pull latest imagery
rm -rf node_modules/editor-layer-index/
git clone https://github.com/osmlab/editor-layer-index.git node_modules/editor-layer-index
# build everything
npm prune
npm install
npm run imagery
npm run all