Closed ProLoser closed 10 years ago
Ah! Excellent idea. It will help keep the config less verbose.
Could you just add some docs and add a test for changes? For a test, you can simply create a new target in the Gruntfile.js that used the array format and add another method in the test class to ensure the changes were as expected.
@cgross tests added
Thanks for the PR. Its an addition that seems obvious in retrospect!
Now the following format is also supported:
I'm aware
remove
doesn't really need to be an array, but I figured devs are probably going to complain about it eventually (instead of using commas) so I added support for it too. I did not add array support tocallback
though.This allows you to do things like reading multiple chunks to multiple data stores, as well as performing all other options in different ways without having to fire multiple task targets.