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

Add htmx extensions to npm to allow installing via package manager #86

Open
tomdtp opened this issue Aug 20, 2024 · 7 comments
Open

Add htmx extensions to npm to allow installing via package manager #86

tomdtp opened this issue Aug 20, 2024 · 7 comments
Labels
documentation Improvements or additions to documentation

Comments

@tomdtp
Copy link

tomdtp commented Aug 20, 2024

I could not find a way to install the htmx-extensions from npm. Ideally we would have one package per extension and be able to install and version them.

@Telroshan
Copy link
Collaborator

Telroshan commented Aug 20, 2024

Doesn't npm i htmx-ext-sse for ex (see each extension's name in their package.json) work for you?

@tomdtp
Copy link
Author

tomdtp commented Aug 21, 2024

@Telroshan Oh, thank you. Maybe this could be documented in the install section of the extensions as well. Did not find any info on this.

@Telroshan
Copy link
Collaborator

Telroshan commented Aug 21, 2024

You're right, we have a npm section on the lib's doc but the extensions don't have any.
We should likely add a mention & npm i command example, in each extension's README in their Install section?

A documentation PR would be welcome btw, if you feel like submitting one!

@tomdtp
Copy link
Author

tomdtp commented Aug 21, 2024

Will try to do this!

@Telroshan Telroshan added the documentation Improvements or additions to documentation label Aug 27, 2024
@sameer-dudeja
Copy link
Contributor

@Telroshan I was thinking of taking this up, Would I need to add npm i for core extensions or all?

@Telroshan
Copy link
Collaborator

Don't know if @tomdtp is still interested in this PR, but if not, sure feel free to do so @sameer-dudeja !
You could only do it for extensions in this repo anyway as community extensions are published on their own by htmx users, and their respective documentation lies on their own repo, so we don't manage those. So yeah, if you feel like it, the idea would be to add a npm installation mention to all extensions in this repo!

@marisst
Copy link
Contributor

marisst commented Dec 14, 2024

@tomdtp, @Telroshan, @sameer-dudeja I have created a PR updating the documentation of extensions and including guidelines for npm/bundler installation. This should solve the issue. bigskysoftware/htmx#3078

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants