jwvdiermen / grunt-include-source

Include lists of files into your source files automatically.
MIT License
68 stars 31 forks source link

Implement #18 Same source and destination file #21

Closed mattzeunert closed 10 years ago

mattzeunert commented 10 years ago

This adds support for using the original file as the destination by adding an comment as suggested in issue #18.

I also added a grunt lineendings task because on my machine when I first cloned the repo two of the tests didn't run as the \r\n and just \n line endings of the source and expectation files didn't match. I didn't commit after running it though to avoid making the diff unreadable.

jwvdiermen commented 10 years ago

Thanks for this, seems to be working. There are still some double spaces instead of tabs though in the source, but I can fix that easily.

The problem with the line endings should be an easy fix by configuring my GIT to convert the line endings, so I may do that later. For now, the lineendings task does the job.