3 ms·
This is a utility I build to be able to make sure my JS CLI's actually work across the version I want to support. Right now, the tool also works across any lan
by diggan 11y ago
This is a utility I build to be able to make sure my JS CLI's actually work across the version I want to support.
Right now, the tool also works across any language where there is docker images with versions, not just for JavaScript/NodeJS. It's enough with having a Dockerfile with $VERSION (that will be replaced by the tool) and changing the test command. I will make this easier in the future.
Thanks for taking a look and please let me know what you think about it.
- nosefrog 11y agoThis is great! Nice work.
- caffinatedmonk 11y agoJust out of curiosity, can't this be implemented with `nvm` and some sand boxing? Why did you choose to use docker?
- diggan 11y agoYes, it can indeed. I have three reasons for not doing it though. The first is that nvm is nodejs specific and since I knew I wanted it to eventually work with multiple languages, nvm is out. Second is that docker has a API I can work with (via Dockerode in this case), makes it easier to use/debug and such. Third is the easy of isolation. It's basically what docker is about while nvm is more for just managing versions. I still use nvm locally, when developing. But when I want to rapidly test in multiple versions, I use docker with autochecker.