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

Store cache in node_modules folder #1

Merged
merged 1 commit into from
Sep 5, 2013
Merged

Store cache in node_modules folder #1

merged 1 commit into from
Sep 5, 2013

Conversation

tschaub
Copy link
Owner

@tschaub tschaub commented Sep 5, 2013

Store the cache in a .cache folder in node_modules/grunt-newer/

That way it's already ignored by most projects and it's removed on upgrade, which is a good thing in case you change the format or something.

@tschaub
Copy link
Owner

tschaub commented Sep 5, 2013

I like the suggestion. I was following the discussion on https://github.com/gruntjs/grunt-contrib/issues/132 and the documented suggestion to use .grunt/[npm-module-name] directory. But I'll admit I haven't seen anybody else doing the same.

There is currently an undocumented timestamps option that makes this location configurable. But I like the default of using a path relative to the install itself.

Somewhat unrelated, but for configurations with dest files, the timestamp files can be avoided in favor of checking the mtime of the dest file. Need to try this out at some point.

tschaub added a commit that referenced this pull request Sep 5, 2013
Store cache in node_modules folder.
@tschaub tschaub merged commit 9a94acf into master Sep 5, 2013
@tschaub tschaub deleted the cache branch September 5, 2013 22:26
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.

None yet

1 participant