3 ms·
As mentioned, JS devs seem to favor Macs heavily and the majority of popular JS-related tools seem to be built for *nix first. As a Windows user, I frequently r
by derrikcurran 9y ago
As mentioned, JS devs seem to favor Macs heavily and the majority of popular JS-related tools seem to be built for *nix first. As a Windows user, I frequently ran into annoying friction. Like some step in a complicated build process failing because someone used `&&` in an NPM script.
That said, I've switched to a WSL environment (native Linux on Windows) and it has handled everything I've thrown at it so far, including make scripts, GUI apps, etc.
- majewsky 9y agoDoes Docker work on WSL?
- Zekio 9y agoNot as far as I know, but docker on windows will spin up a HyperV VM so you still get a pretty good experience
- nunez 9y agoYes! Sort of. You need Docker for Windows and have to have the DOCKER_HOST of your Linux subsystem be connected to it. But volume mounting doesn't work :( As such, I use an Ubuntu Vagrant box.
- majewsky 9y agoMeh. I guess I'll continue with my current setup (Arch Linux on Virtualbox) for the time being.
- hungerstrike 9y ago`&&` works in my NPM scripts on Windows 10. Here's one line from my current project: "build-intl": "npm run build-intl-translations && npm run build-intl-locales", Perhaps this is something that didn't work early on. I've been using Node.js on Windows since before v0.10 and I have had some issues here and there but these days it's a dream.
- EnderMB 9y agoIIRC, Powershell and CMD have different chain syntax, so it depends which one you're running from. If I'm using CMD I can use &&, whereas | works on PS. I might be wildly wrong on this one, but I'm a big fan of writing "git add . && git commit -m "Commit Message" && git push origin master", and I noticed that in a Powershell window I had to use the vertical bar instead of double-ampersands.
- hungerstrike 9y agoWow, I have to try that out later. I have always avoided powershell in favor of CMD because I wasn’t sure of what powershell extras would get my way. Seems like this would be one example of that.