Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove caching

  • Loading branch information...
commit 9681b4fc79d4ee0eda7bcf3f8f195bcb0265a262 1 parent 8140120
@ddollar ddollar authored
Showing with 0 additions and 29 deletions.
  1. +0 −29 bin/compile
View
29 bin/compile
@@ -154,37 +154,8 @@ INCLUDE_PATH="$VENDORED_NODE/include"
export CPATH="$INCLUDE_PATH"
export CPPPATH="$INCLUDE_PATH"
-# unpack existing cache
-if [ -d $CACHE_STORE_DIR ]; then
-
- # generate a place to put node_modules
- TEMP_NODE_MODULES_DIR=$(mktmpdir node_modules)
-
- # move existing node_modules out of the way
- if [ -d $CACHE_TARGET_DIR ]; then
- mv $CACHE_TARGET_DIR $TEMP_NODE_MODULES_DIR/
- fi
-
- # copy the cached node_modules in
- mkdir -p $CACHE_TARGET_DIR
- cp -R $CACHE_STORE_DIR/* $CACHE_TARGET_DIR/
-
- # move existing node_modules back into place
- if [ -d $TEMP_NODE_MODULES_DIR/node_modules ]; then
- cp -R $TEMP_NODE_MODULES_DIR/node_modules/* $CACHE_TARGET_DIR/
- fi
-
-fi
-
# install dependencies with npm
echo "-----> Installing dependencies with npm"
run_npm "install --production"
run_npm "rebuild"
echo "Dependencies installed" | indent
-
-# repack cache with new assets
-if [ -d $CACHE_TARGET_DIR ]; then
- rm -rf $CACHE_STORE_DIR
- mkdir -p $(dirname $CACHE_STORE_DIR)
- cp -a $CACHE_TARGET_DIR $CACHE_STORE_DIR
-fi
Please sign in to comment.
Something went wrong with that request. Please try again.