News for hackers. Stuff that matters.
Re:The Makefile I use with JavaScript projects by deckard1 on Wednesday February 28, 2018 @05:34PM (#16487819)
I say, you JS guys doth protest a bit too much.

If you look in your package.json, you'll surely see a dozen or so "scripts" lines that run through the same shell that make does and have all the problems you just mentioned.

I'd also like to point out that Linux and almost certainly your production environment (because it's most likely *ix) will be case sensitive. Your macOS or Windows file system? Not so much. Point is, you're already up to your neck in portability issues. My macOS coworkers often forget this detail.

Re:The Makefile I use with JavaScript projects by bobbyi_settv on Wednesday February 28, 2018 @06:39PM (#16488335)
If an external package has scripts in it, those scripts have very likely been run by somebody on a mac and somebody on linux and worked in both cases. That is totally different than writing a line of script that only you have ever run and assuming that because it works on your laptop, it will run everywhere.
Re:The Makefile I use with JavaScript projects by deckard1 on Thursday March 01, 2018 @03:37AM (#16490492)
> That is totally different than writing a line of script that only you have ever run and assuming that because it works on your laptop, it will run everywhere.

huh?? No it's not. That's the whole discussion we are having now. I even specifically mentioned my macOS coworkers who develop on their Mac and are oblivious to case-sensitivity issues. Because "it worked for me."

> If an external package has scripts in it, those scripts have very likely been run by somebody on a mac and somebody on linux and worked in both cases.

Oh, I'd love for that to be true. But also not what I was referring to. Most large projects have a "scripts" section and those are no different than Makefile commands. If you're paranoid about your own Makefiles then you're going to need to be paranoid about your own package.json.