alpinejs / alpine

A rugged, minimal framework for composing JavaScript behavior in your markup.
https://alpinejs.dev
MIT License
27.92k stars 1.22k forks source link

make docs more generic to package managers #4310

Open browner12 opened 1 month ago

browner12 commented 1 month ago

for a long time NPM has basically been the de facto front end package manager. however, BunJS is making a strong push, and a good case for itself, so I think it'd be good for us to include it where appropriate.

we all know specific tooling comes and goes, so I've made the language more generic where appropriate, and refer to "a package manager" instead of specifically "NPM".

I've also then included the analogous bun command next to npm commands.

ekwoka commented 1 month ago

pnpm would probably be a more important add, since it's the current most common standard for basically everything (and directly supported everywhere). Bun is new but much less common and not supported many places without extra code (cloudflare auto detects)

browner12 commented 1 month ago

I'm definitely okay with adding others, if you want to do a separate PR after/if this one gets merged.

I still think it's important to make the appropriate parts of the documentation language "tool agnostic".

What do you mean by "bun is not supported many places"? It's a binary that can be installed with a simple bash script.

ekwoka commented 1 month ago

What do you mean by "bun is not supported many places"? It's a binary that can be installed with a simple bash script.

I mean naturally. Like auto-detected, preinstalled.

I'm definitely okay with adding others, if you want to do a separate PR after/if this one gets merged.

Probably better just to do it all in one, tbh.