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
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.
Or even better, compile into a wasm binary.