mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Avoid frequent npm install in sample deploy.sh, it wastes /tmp space
This commit is contained in:
+4
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user