Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
4743894c
Commit
4743894c
authored
Jan 13, 2012
by
David Dollar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove debug
parent
66cdced3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
compile
bin/compile
+3
-3
No files found.
bin/compile
View file @
4743894c
...
...
@@ -73,23 +73,23 @@ export CPPPATH="$INCLUDE_PATH"
# unpack existing cache
if
[
-d
$CACHE_STORE_DIR
]
;
then
echo
"unpacking cache"
# 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
echo
"moving out"
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
echo
"moving back"
cp
-R
$TEMP_NODE_MODULES_DIR
/node_modules/
*
$CACHE_TARGET_DIR
/
fi
fi
# install dependencies with npm
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment