News for hackers. Stuff that matters.
Re:Stylelint – A modern linter for CSS by hiccuphippo on Monday February 04, 2019 @10:32AM (#19077086)
I wonder if CLI tools could be put into a single zipfile with all the dependencies inside and just ran from there. Just like php's phar files.

Or even better, compile into a wasm binary.

Re:Stylelint – A modern linter for CSS by folkrav on Monday February 04, 2019 @10:58AM (#19077334)
There are things like nexe[1] and pkg[2] but the resulting executables end up pretty bloated (30+ MBs for a simple hello world, cause they all end up bundling Node in some way with every executable). nexe doesn't support native Node modules either, IIRC.

[1] https://github.com/nexe/nexe [2] https://github.com/zeit/pkg

Re:Stylelint – A modern linter for CSS by thangngoc89 on Monday February 04, 2019 @10:47AM (#19077216)
1. Yes. If your CLI tool is written entirely in JS, you can even bundle all files into a single file and ship the JS file. With native dependencies, you need to use other solutions. 2. Compile into a wasm binary is not possible because JS is an dynamically typed language. No type at compilation time
Re:Stylelint – A modern linter for CSS by tracker1 on Monday February 04, 2019 @02:45PM (#19079922)
And when you need to support Linux, Windows and Mac for developers?
Re:Stylelint – A modern linter for CSS by hiccuphippo on Monday February 04, 2019 @07:13PM (#19081954)
They still need to install Node. This is just a zip file that Node would run that contains all the dependencies inside the zip.
Re:Stylelint – A modern linter for CSS by tracker1 on Tuesday February 05, 2019 @12:01PM (#19087159)
So, you need to include the linux, windows and mac versions in your zip file at the very least for binary dependencies?