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
aa480b1c
Commit
aa480b1c
authored
Jan 11, 2012
by
David Dollar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better npm support
parent
404494b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
compile
bin/compile
+18
-4
No files found.
bin/compile
View file @
aa480b1c
...
...
@@ -64,23 +64,37 @@ export CPATH="$INCLUDE_PATH"
export
CPPPATH
=
"
$INCLUDE_PATH
"
# unpack existing cache
rm
-rf
$CACHE_TARGET_DIR
if
[
-d
$CACHE_STORE_DIR
]
;
then
cp
-a
$CACHE_STORE_DIR
$CACHE_TARGET_DIR
mkdir
-p
$CACHE_TARGET_DIR
cp
-R
$CACHE_STORE_DIR
/
*
$CACHE_TARGET_DIR
/
fi
# install dependencies with npm
echo
"-----> Installing dependencies with npm
$NPM_VERSION
"
cd
$BUILD_DIR
HOME
=
"
$BUILD_DIR
"
$VENDORED_NODE
/bin/node
$VENDORED_NPM
/cli.js prune 2>&1 | indent
if
[
"
${
PIPESTATUS
[*]
}
"
!=
"0 0"
]
;
then
echo
" ! Failed to prune dependencies with npm"
exit
1
fi
HOME
=
"
$BUILD_DIR
"
$VENDORED_NODE
/bin/node
$VENDORED_NPM
/cli.js
install
2>&1 | indent
if
[
"
${
PIPESTATUS
[*]
}
"
!=
"0 0"
]
;
then
echo
" ! Failed to install dependencies with npm"
exit
1
else
echo
" Dependencies installed"
fi
HOME
=
"
$BUILD_DIR
"
$VENDORED_NODE
/bin/node
$VENDORED_NPM
/cli.js rebuild 2>&1 | indent
if
[
"
${
PIPESTATUS
[*]
}
"
!=
"0 0"
]
;
then
echo
" ! Failed to rebuild dependencies with npm"
exit
1
fi
echo
" Dependencies installed"
# repack cache with new assets
if
[
-d
$CACHE_TARGET_DIR
]
;
then
rm
-rf
$CACHE_STORE_DIR
...
...
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