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

any-newer fails to run when the destination is deleted and no newer files are modified or added #10

Merged
merged 2 commits into from
Sep 26, 2013

Conversation

royriojas
Copy link
Contributor

This issue happens when

  1. a task has a source (src) set of files and a destination file (dest)
  2. the task runs successfully doing grunt newer:mytask
  3. then externally delete the destination file
  4. run newer:mytask

Result:
No new files... then no destination file is written

Expected behavior
The task should detect that the destination file is not present and run even if no files were modified or added.

@tschaub
Copy link
Owner

tschaub commented Sep 26, 2013

Thanks for this contribution @royriojas! I've added some tests in #11. (I'll be doing some refactoring soon that make testing easier.)

@tschaub tschaub merged commit 5493e42 into tschaub:master Sep 26, 2013
@royriojas
Copy link
Contributor Author

Yes, sorry about that, I didn't realize tests were failing... thanks man!

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.

2 participants