gruntjs / gruntjs/grunt

Need a 'nonull' file option that also fails on missing files

Open
#1,105 12 comments 0 reactions 0 assignees View on GitHub
Component: tasks
Dominant language
JavaScript
Stars
12.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Something like `nonullFail`:

```
bar: {
files: [
// if any files are missing, fail the build
{src: ['src/bb.js', 'src/bbb.js'], dest: 'dest/b/', nonullFail: true}
],
},
```

ref: https://github.com/gruntjs/grunt-contrib-concat/pull/70

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Grunt's file-option handling and the behavior described in the example configuration. Compare the requested nonullFail option with the referenced grunt-contrib-concat pull request. Done means an opt-in option causes the build to fail when any listed source file is missing, while existing behavior remains unchanged otherwise.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.