docs(readme): document gjsify dlx + gjsify install -g install paths#411
Merged
Conversation
Adds two new install methods to the GJS-runtime section of README: - `gjsify dlx @ts-for-gir/cli [args…]` — npx-style one-shot run. Content-addressed cache at `~/.cache/gjsify/dlx`; reuses across invocations of the same spec, `--reinstall` forces refresh. - `gjsify install -g @ts-for-gir/cli` — global install with symlinked launcher at `~/.local/bin/ts-for-gir`. Both paths require only GJS — no Node.js, no npm CLI. They depend on gjsify v0.4.21+ (the bare-spec → `latest` dist-tag fix in gjsify/gjsify#249; without that fix, dlx/install -g silently picked the abandoned v3.3.0 release instead of 4.0.0-rc.17). The existing `curl | gjs install.js` one-liner is kept as a self-bootstrap path for users who don't yet have the gjsify CLI installed.
885f7f8 to
7b7c386
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two new install paths
Both Node-free, GJS-runtime only:
One-shot via `gjsify dlx` (npx-style)
```bash
gjsify dlx @ts-for-gir/cli list
gjsify dlx @ts-for-gir/cli generate Gtk-4.0
```
Content-addressed cache at `~/.cache/gjsify/dlx`; subsequent invocations of the same spec reuse it. `--reinstall` forces a refresh.
Global install via `gjsify install -g`
```bash
gjsify install -g @ts-for-gir/cli
ts-for-gir --help
```
Installs into `
/.local/share/gjsify/global` and symlinks the binary to `/.local/bin/ts-for-gir`. Re-run to update.Dependency
Both paths require gjsify v0.4.21+ (the bare-spec →
latestdist-tag fix in gjsify/gjsify#249). Without that fix, bare-name resolution picks the abandoned v3.3.0 release instead of 4.0.0-rc.17 because semver `*` skips prereleases.What's preserved