-
Notifications
You must be signed in to change notification settings - Fork 91
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
Consider Adding Node and NPM Caching #19
Comments
@naaman a better approach would be to get those plugins to support specifying the locations of caches for these tools, and then to use |
Looks like the nodejs buildpack just started supporting user-defined cache directories with heroku/heroku-buildpack-nodejs#203. They're doing this via a custom |
@cbeams are you using the Node.js buildpack in conjunction with this buildpack (such as with buildpack-multi or Could the artifacts be cached in |
@jkutner I am not currently using buildpack-multi. I've done so before, and it's proved more hassle than it's worth. I'm using the normal grade buildpack in conjunction with https://github.com/srs/gradle-node-plugin, and this works well—save for the lack of caching of node_modules, bower_components, etc. |
@cbeams I created a branch for this. Can you test it out to make sure it does what you expect? You can use it by running: $ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-gradle#node-modules-cache By default it should cache $ heroku config:set BUILD_CACHED_DIRS="node_modules bower_components other_dir" |
Some builds use node and NPM (via the gradle-gulp-plugin), but those artifacts aren't cached during the build process. Consider adding support for node and NPM caching between builds.
The text was updated successfully, but these errors were encountered: