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
12b6a856
Commit
12b6a856
authored
Jan 27, 2017
by
Hunter Loftis
Committed by
GitHub
Jan 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #366 from heroku/remove-caches-from-slug
no need to store these things in the slug
parents
493ce9f1
5018f519
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
compile
bin/compile
+1
-0
cache.sh
lib/cache.sh
+6
-0
dependencies.sh
lib/dependencies.sh
+2
-2
No files found.
bin/compile
View file @
12b6a856
...
...
@@ -164,6 +164,7 @@ cache_build() {
save_cache_directories
"
$BUILD_DIR
"
"
$CACHE_DIR
"
$cache_directories
fi
save_signature
remove_caches_from_slug
"
$BUILD_DIR
"
}
header
"Caching build"
...
...
lib/cache.sh
View file @
12b6a856
...
...
@@ -56,6 +56,12 @@ restore_cache_directories() {
done
}
remove_caches_from_slug
()
{
local
build_dir
=
${
1
:-}
rm
-rf
"
$build_dir
/.npm"
rm
-rf
"
$build_dir
/.cache/yarn"
}
clear_cache
()
{
rm
-rf
$CACHE_DIR
/node
mkdir
-p
$CACHE_DIR
/node
...
...
lib/dependencies.sh
View file @
12b6a856
...
...
@@ -35,8 +35,8 @@ yarn_node_modules() {
if
$(
yarn check 1>/dev/null
)
;
then
echo
"yarn.lock and package.json match"
else
e
rror
"yarn.lock is outdated. run
\`
yarn install
\`
, commit the updated
\`
yarn.lock
\`
, and redeploy
"
return
1
e
cho
"yarn.lock is outdated
"
warning
"yarn.lock is outdated."
"run
\`
yarn install
\`
, commit the updated
\`
yarn.lock
\`
, and redeploy"
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