adrianvlupu / C4-Builder

This is a documentation builder. You feed it .md and .puml and it exports a site, pdf, or a markdown with navigation.
https://adrianvlupu.github.io/C4-Builder/
MIT License
562 stars 93 forks source link

I'd like to use c4Builder on a non-windows machine but CLRF are causing issues #66

Open adamclerk opened 2 years ago

adamclerk commented 2 years ago

Would you consider doing something like this: https://www.edwardthomson.com/blog/git_for_windows_line_endings.html

to support other platforms that want to use this plugin?

adamclerk commented 2 years ago

Example: index.js in the root of the repository has CRLF at the end of each line.

When I pull down the repo. My git instance is smart enough to convert my code to LF. What is not smart is NPM. When you package the code it's packing the CRLF. When I try to run the c4builder after installing it globally or locally via NPM. There is no CRLF to LF conversion going on.

I found this pertaining issue https://github.com/jedmao/codepainter/issues/14

adamclerk commented 2 years ago

I've published the package c4builder-non-windows to get around the issue temporarily.