elm-lang / elm-make

A build tool for Elm projects
BSD 3-Clause "New" or "Revised" License
175 stars 45 forks source link

elm-make fails with --output NUL on windows environment #125

Closed tshm closed 6 years ago

tshm commented 7 years ago

/dev/null equivalent in Windows (cmd) is NUL. (e.g. echo "test" > NUL, will throw away stdout)

elm-make should support it as well.

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

elehner commented 7 years ago

@tshm, you may have noticed it already, but '/dev/null' is just a hard-coded string in elm-make, and tells the compiler to not save the output to a file. Since it's just a flag it also works in Windows, though it is odd to see --output='/dev/null' while in a command prompt.

Agreed that NUL should also be a valid flag value if nothing else.

evancz commented 6 years ago

As @elehner says, there is a way to do this. I'm not sure if it is a feature request to allow both names though. I will close for now and see if anyone else asks for the alias.