guybedford / chomp

'JS Make' - parallel task runner for the frontend ecosystem with a JS extension system.
https://chompbuild.com
Apache License 2.0
138 stars 7 forks source link

--ignore-missing / --if-exists flag for building optional targets #120

Open guybedford opened 2 years ago

guybedford commented 2 years ago

It might useful to have a chomp --ignore-missing targetA targetB which ignores targets not defined in the Chompfile (say it only defines targetA but not targetB).

Eg when building a monorepo it would avoid failing a test task being interpolated where projects don't define a test task.

--ignore-missing / -m or --if-exists / -e could be possible flags for this.

guybedford commented 2 years ago

Alternatively --if-present.