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
1ebb095a
Commit
1ebb095a
authored
Dec 31, 2014
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #157 from heroku/indent-npm
indent npm output
parents
bc725a13
fda9c515
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
compile
bin/compile
+7
-7
No files found.
bin/compile
View file @
1ebb095a
...
@@ -98,7 +98,7 @@ if [ "$npm_engine" != "" ]; then
...
@@ -98,7 +98,7 @@ if [ "$npm_engine" != "" ]; then
npm_engine
=
$(
curl
--silent
--get
--data-urlencode
"range=
${
npm_engine
}
"
https://semver.herokuapp.com/npm/resolve
)
npm_engine
=
$(
curl
--silent
--get
--data-urlencode
"range=
${
npm_engine
}
"
https://semver.herokuapp.com/npm/resolve
)
fi
fi
info
"Downloading and installing npm
$npm_engine
(replacing version
`
npm
--version
`
)..."
info
"Downloading and installing npm
$npm_engine
(replacing version
`
npm
--version
`
)..."
npm
install
--quiet
-g
npm@
$npm_engine
>
/dev/null
npm
install
--quiet
-g
npm@
$npm_engine
>
/dev/null
2>&1 | indent
fi
fi
# Run subsequent commands from the build directory
# Run subsequent commands from the build directory
...
@@ -129,22 +129,22 @@ if [ "$modules_source" == "" ]; then
...
@@ -129,22 +129,22 @@ if [ "$modules_source" == "" ]; then
elif
[
$modules_source
==
"prebuilt"
]
;
then
elif
[
$modules_source
==
"prebuilt"
]
;
then
info
"Rebuilding any native modules for this architecture"
info
"Rebuilding any native modules for this architecture"
npm run preinstall
npm run preinstall
2>&1 | indent
npm rebuild 2>&1
npm rebuild 2>&1
| indent
npm run postinstall
npm run postinstall
2>&1 | indent
elif
$use_cache
;
then
elif
$use_cache
;
then
info
"Restoring node modules from cache"
info
"Restoring node modules from cache"
cp
-r
$cache_dir
/node/node_modules
$build_dir
/
cp
-r
$cache_dir
/node/node_modules
$build_dir
/
info
"Pruning unused dependencies"
info
"Pruning unused dependencies"
npm prune 2>&1
npm prune 2>&1
| indent
info
"Installing any new modules"
info
"Installing any new modules"
npm
install
--quiet
--userconfig
$build_dir
/.npmrc 2>&1
npm
install
--quiet
--userconfig
$build_dir
/.npmrc 2>&1
| indent
else
else
info
"Installing node modules"
info
"Installing node modules"
touch
$build_dir
/.npmrc
touch
$build_dir
/.npmrc
npm
install
--quiet
--userconfig
$build_dir
/.npmrc 2>&1
npm
install
--quiet
--userconfig
$build_dir
/.npmrc 2>&1
| indent
fi
fi
####### Create a Procfile if possible
####### Create a Procfile if possible
...
...
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