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
3d9ee07f
Commit
3d9ee07f
authored
Oct 26, 2017
by
Jeremy Morrell
Committed by
Jeremy Morrell
Oct 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more metrics around build scripts
parent
43c25465
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
dependencies.sh
lib/dependencies.sh
+21
-0
No files found.
lib/dependencies.sh
View file @
3d9ee07f
...
...
@@ -33,6 +33,7 @@ log_build_scripts() {
local build=
$(
read_json
"
$BUILD_DIR
/package.json"
".scripts[
\"
build
\"
]"
)
local heroku_prebuild=
$(
read_json
"
$BUILD_DIR
/package.json"
".scripts[
\"
heroku-prebuild
\"
]"
)
local heroku_postbuild=
$(
read_json
"
$BUILD_DIR
/package.json"
".scripts[
\"
heroku-postbuild
\"
]"
)
local postinstall=
$(
read_json
"
$BUILD_DIR
/package.json"
".scripts[
\"
heroku-postbuild
\"
]"
)
if [ -n "
$build
" ]; then
mcount "
scripts.build
"
...
...
@@ -40,6 +41,22 @@ log_build_scripts() {
if [ -z "
$heroku_postbuild
" ]; then
mcount "
scripts.build-without-heroku-postbuild
"
fi
if [ -z "
$postinstall
" ]; then
mcount "
scripts.build-without-postinstall
"
fi
if [ -z "
$postinstall
" ] && [ -z "
$heroku_postbuild
" ]; then
mcount "
scripts.build-without-other-hooks
"
fi
fi
if [ -n "
$postinstall
" ]; then
mcount "
scripts.postinstall
"
if [ "
$postinstall
" == "
npm run build
" ]; then
mcount "
scripts.postinstall-is-npm-build
"
fi
fi
if [ -n "
$heroku_prebuild
" ]; then
...
...
@@ -48,6 +65,10 @@ log_build_scripts() {
if [ -n "
$heroku_postbuild
" ]; then
mcount "
scripts.heroku-postbuild
"
if [ "
$heroku_postbuild
" == "
npm run build
" ]; then
mcount "
scripts.heroku-postbuild-is-npm-build
"
fi
fi
if [ -n "
$heroku_postbuild
" ] && [ -n "
$build
" ]; then
...
...
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