-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Need a 'nonull' file option that also fails on missing files #1105
Comments
👍 Another option would be accepting a string for |
@jmeas Yes! |
+1 |
👍 for @jmeas idea |
So there are a few possible things I can do. Warn when all patterns/files fail to match
Warn when any pattern/file fails to match One method:
Alternate method:
The (not yet in master) version of node-globule that will be in the next major version of Grunt will support both use-cases, since it emits a So, for now, I could probably add in support for warning when all patterns/files fail to match (ie. dest is an empty array) but I don't see how to add in support for warning when any pattern/file fails to match. |
👍 |
+1. Failure on missing files is crucial for automated builds |
+1 |
Any update on this? Seems like a simple requirement? As mentioned above, this is crucial for automated builds. Thanks! |
+1 as @slickorange said, crucial for automated builds. |
@lawlesscreation As a workaround add grunt.log.warn = grunt.warn; to the top of your Gruntfile . |
@slickorange not sure if it's just my build but when using grunt.log.warn = grunt.warn; it "aborts due to warnings" but doesn't tell me what the warning is. I get:
I do have a complicate build and Gruntfile (using load-grunt-configs and load-grunt-tasks) so it could just be me. |
Something like
nonullFail
:ref: gruntjs/grunt-contrib-concat#70
The text was updated successfully, but these errors were encountered: