ericmatthys/grunt-changelog

Possible to append to destination file instead of overwriting?

tigerclaw-az opened this issue · 4 comments

Is it possible to append to the destination file instead of overwriting it?

I got around this by running a concat task after running changelog...

So your output file is just a temporary file that you concatenate to the main changelog file? Then you just remove the temporary changelog?

I'll admit that I had a pretty specific use case when initially developing the plugin, but I think it would be good to allow prepend / append instead of overwriting the file. I also want to provide some more data to the template (package version, issue number along with commit message, etc.) and possibly have a set of presets (basic, markdown, etc.).

@ejwaibel my grunt.changelog task generates a new output file, named after the version. So I end up with a folder with a bunch of generated changelogs. Then I get concat to combine these files and output to a solitary changelog.md file.