Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache node modules and meteor build #195

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maxnowack
Copy link

I've added caching for development and production node_modules. I'm also saving the cache, meteor generates during the build.
Reusing that cache, reduced my build time from ~30 minutes to ~10 minutes (!)

@maxnowack maxnowack force-pushed the caching branch 7 times, most recently from c5358a3 to 05e9830 Compare April 3, 2018 13:49
bin/compile Outdated Show resolved Hide resolved
Copy link
Contributor

@chdsbd chdsbd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. It would be good if you could quote all the variables $CACHE_DIR => "$CACHE_DIR".

@maxnowack
Copy link
Author

Sorry for the long delay. I made the change you've requested :)

@edmorley
Copy link

Hi! Presuming there might be compiled packages within node_modules, you may need to also add handling to bust the cache for stack upgrades (eg have a cache signature that is based on $STACK amongst other things).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants