You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/failure.sh
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ warn_node_engine() {
49
49
warn_prebuilt_modules() {
50
50
local build_dir=${1:-}
51
51
if [ -e"$build_dir/node_modules" ];then
52
-
warning "node_modules checked into source control""https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-"
52
+
warning "node_modules checked into source control""https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git"
53
53
fi
54
54
}
55
55
@@ -67,3 +67,21 @@ warn_old_npm() {
67
67
warning "This version of npm ($npm_version) has several known issues - consider upgrading to the latest release ($latest_npm)""https://devcenter.heroku.com/articles/nodejs-support#specifying-an-npm-version"
68
68
fi
69
69
}
70
+
71
+
warn_untracked_dependencies() {
72
+
local log_file="$1"
73
+
if grep -qi 'gulp: not found'"$log_file";then
74
+
warning "Gulp may not be tracked in package.json""https://devcenter.heroku.com/articles/troubleshooting-node-deploys#ensure-you-aren-t-relying-on-untracked-dependencies"
75
+
elif grep -qi 'grunt: not found'"$log_file";then
76
+
warning "Grunt may not be tracked in package.json""https://devcenter.heroku.com/articles/troubleshooting-node-deploys#ensure-you-aren-t-relying-on-untracked-dependencies"
77
+
elif grep -qi 'bower: not found'"$log_file";then
78
+
warning "Bower may not be tracked in package.json""https://devcenter.heroku.com/articles/troubleshooting-node-deploys#ensure-you-aren-t-relying-on-untracked-dependencies"
79
+
fi
80
+
}
81
+
82
+
warn_angular_resolution() {
83
+
local log_file="$1"
84
+
if grep -qi 'Unable to find suitable version for angular'"$log_file";then
85
+
warning "Bower may need a resolution hint for angular""https://github.com/bower/bower/issues/1746"
0 commit comments