Coder Social home page Coder Social logo

Comments (6)

vladikoff avatar vladikoff commented on September 13, 2024

http://gruntjs.com/configuring-tasks#files
nonull?

from grunt-contrib-concat.

FrankFang avatar FrankFang commented on September 13, 2024

No. nonull can log a warning message, but it does not have Grunt abort.

from grunt-contrib-concat.

shama avatar shama commented on September 13, 2024

This is something that should be configurable in Grunt's core. We get issues opened up both ways, some users want tasks to abort on warning and some don't. The tasks that do abort were getting issues opened to implement a force option per task. So the consensus was all tasks shouldn't abort, just warn. Then later implement an option in Grunt's core that would make this configurable.

A workaround for now is:

grunt.log.warn = grunt.warn;

from grunt-contrib-concat.

andrewwakeling avatar andrewwakeling commented on September 13, 2024

I would love to see this in Grunt's core or in the very least, for it be possible and consistent in all of the contrib plugins.

In grunt-contrib-uglify, there's been similar discussion.

Any chance we can evolve the nonull option to be one (or more) of the following options: "log", "warn", "notify" or "fail"?

I can understand why people may not want grunt to abort a build if files aren't matched on wildcards. If you're pointing to a specific file, I really think the default behaviour should be to abort the build if that file isn't found.

Coming from other build tools, this is really a fundamental feature that's missing in Grunt.

from grunt-contrib-concat.

SimonKenyonShepard avatar SimonKenyonShepard commented on September 13, 2024

Did this ever get implemented in the Grunt core? A year later and our project is still suffering the same, would love to be able to turn on the ability to fail when a specified file is missing.

from grunt-contrib-concat.

vladimirkosmala avatar vladimirkosmala commented on September 13, 2024

This topic is still relevant. grunt-contrib-concat should have an option to abort when file missing when we use it in production.

from grunt-contrib-concat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.