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
e2dd7874
Commit
e2dd7874
authored
Mar 11, 2016
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changelog and removing extraneous script runs
parent
649802e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
16 deletions
+5
-16
CHANGELOG.md
CHANGELOG.md
+5
-0
dependencies.sh
lib/dependencies.sh
+0
-16
No files found.
CHANGELOG.md
View file @
e2dd7874
# Node.js Buildpack Changelog
# Node.js Buildpack Changelog
## Latest
-
Adds heroku-prebuild script
-
Adds heroku-postbuild script
## v88 (2016-2-23)
## v88 (2016-2-23)
-
Retries all curl requests
-
Retries all curl requests
...
...
lib/dependencies.sh
View file @
e2dd7874
...
@@ -9,8 +9,6 @@ run_if_present() {
...
@@ -9,8 +9,6 @@ run_if_present() {
install_node_modules
()
{
install_node_modules
()
{
local
build_dir
=
${
1
:-}
local
build_dir
=
${
1
:-}
local
has_prebuild_script
=
${
2
:-}
local
has_postbuild_script
=
${
3
:-}
if
[
-e
$build_dir
/package.json
]
;
then
if
[
-e
$build_dir
/package.json
]
;
then
cd
$build_dir
cd
$build_dir
...
@@ -23,10 +21,6 @@ install_node_modules() {
...
@@ -23,10 +21,6 @@ install_node_modules() {
echo
"Installing node modules (package.json)"
echo
"Installing node modules (package.json)"
fi
fi
npm
install
--unsafe-perm
--userconfig
$build_dir
/.npmrc 2>&1
npm
install
--unsafe-perm
--userconfig
$build_dir
/.npmrc 2>&1
if
[
-n
"
$has_postbuild_script
"
]
;
then
echo
"Running postbuild script"
npm run heroku-postbuild
fi
else
else
echo
"Skipping (no package.json)"
echo
"Skipping (no package.json)"
fi
fi
...
@@ -34,15 +28,9 @@ install_node_modules() {
...
@@ -34,15 +28,9 @@ install_node_modules() {
rebuild_node_modules
()
{
rebuild_node_modules
()
{
local
build_dir
=
${
1
:-}
local
build_dir
=
${
1
:-}
local
has_prebuild_script
=
${
2
:-}
local
has_postbuild_script
=
${
3
:-}
if
[
-e
$build_dir
/package.json
]
;
then
if
[
-e
$build_dir
/package.json
]
;
then
cd
$build_dir
cd
$build_dir
if
[
-n
"
$has_prebuild_script
"
]
;
then
echo
"Running prebuild script"
npm run heroku-prebuild
fi
echo
"Rebuilding any native modules"
echo
"Rebuilding any native modules"
npm rebuild 2>&1
npm rebuild 2>&1
if
[
-e
$build_dir
/npm-shrinkwrap.json
]
;
then
if
[
-e
$build_dir
/npm-shrinkwrap.json
]
;
then
...
@@ -51,10 +39,6 @@ rebuild_node_modules() {
...
@@ -51,10 +39,6 @@ rebuild_node_modules() {
echo
"Installing any new modules (package.json)"
echo
"Installing any new modules (package.json)"
fi
fi
npm
install
--unsafe-perm
--userconfig
$build_dir
/.npmrc 2>&1
npm
install
--unsafe-perm
--userconfig
$build_dir
/.npmrc 2>&1
if
[
-n
"
$has_postbuild_script
"
]
;
then
echo
"Running postbuild script"
npm run heroku-postbuild
fi
else
else
echo
"Skipping (no package.json)"
echo
"Skipping (no package.json)"
fi
fi
...
...
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