bashunit icon indicating copy to clipboard operation
bashunit copied to clipboard

Consider publishing `bashunit` on the npm registry

Open h0adp0re opened this issue 1 year ago • 4 comments

In order to use bashunit conveniently and platform-independently in a JS project, I'd like to be able to install it via npm.

h0adp0re avatar Feb 23 '24 15:02 h0adp0re

Good morning @h0adp0re !

Thank you very much for your suggestion, we'll take a look at it!

In the meantime, you might want to add this little script to your scripts section in your package.json file, this will make bashunit install automatically every time you run npm install, npm ci, etc...

package.json:

{
  "scripts": {
    "postinstall": "curl -s https://bashunit.typeddevs.com/install.sh | bash"
  }
}

You can even pin a specific version or change the installation directory to node_modules if you prefer, take a look at our documentation.

antonio-gg-dev avatar Feb 23 '24 16:02 antonio-gg-dev

Aha, that's a clever way of handling it, too. Thanks!

If you don't want to mess around with npm, maybe adding that snippet to the docs will suffice? It's a decent alternative.

h0adp0re avatar Feb 23 '24 16:02 h0adp0re

Thanks for the input, @h0adp0re ! I am not sure where or how to put it, but feel free to create a PR to add that snippet to the docs, and we can work out and improve it all together. Many thanks! 🙏

Chemaclass avatar Jun 17 '24 21:06 Chemaclass

@h0adp0re @antonio-gg-dev ping on this one ☝️

Chemaclass avatar Jul 08 '24 19:07 Chemaclass