gruntfile-editor
gruntfile-editor copied to clipboard
#insertConfig(): Replace existing config block
This probably isn't needed or a good idea but if its not to hard to add an API for it, a whole config task should be replaceable.
:+1:
Actually I think this might be the default current behavior but maybe it shouldn't be and instead follow these rules:
- Insert new config/target if it doesn't exist
- Ignore config/target if it does exist
- Add a flag to replace config/target if it does exist
- Add a flag to merge config/target if specified
Maybe the method could prompt like the conflicter in yo-gen does if it does exist. Maybe have an option to always allow replace, merge, or ignore.
Nice idea! What's the current status?
need this :+1: