Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider publishing bashunit on the npm registry #244

Open
h0adp0re opened this issue Feb 23, 2024 · 4 comments
Open

Consider publishing bashunit on the npm registry #244

h0adp0re opened this issue Feb 23, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@h0adp0re
Copy link
Contributor

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 h0adp0re added the enhancement New feature or request label Feb 23, 2024
@antonio-gg-dev
Copy link
Member

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.

@h0adp0re
Copy link
Contributor Author

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.

@Chemaclass
Copy link
Member

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

3 participants