This fixes #69 and ensures line endings used when injecting code match the rest of the file. The updated injections include:
Injecting settings into config/test.exs
Injecting menu app layout
Injecting plug into router
I extracted the config injection code into its own module so the injection code could be tested without needing to modify the file system. I also added an integration test to ensure no errors are raised when windows line endings are used.
If we want full matching line ending support, I can continue this work for the rest of the injections. Any feedback would be appreciated.
This fixes #69 and ensures line endings used when injecting code match the rest of the file. The updated injections include:
I extracted the config injection code into its own module so the injection code could be tested without needing to modify the file system. I also added an integration test to ensure no errors are raised when windows line endings are used.
If we want full matching line ending support, I can continue this work for the rest of the injections. Any feedback would be appreciated.
Fixes #69 Closes #70