Title: feat: jspod install
Open Graph Title: feat: jspod install
X Title: feat: jspod install
Description: Fixes #36. What `jspod install ` replaces the multi-step git-push recipe new users had to copy-paste. Defaults to `github.com/solid-apps/` as the source; one command per app or batch by listing several. ```bash jspod install chrome # one jspod install vellum win98 pdf # several jspod install # curated set: chrome vellum win98 pdf hub jspod install --pod http://other.pod chrome jspod install --help ``` How it hides the sharp edges The manual recipe had three friction points that all bite new users on first use: Shallow clones get rejected. `git push` from a `--depth=1` clone fails with `shallow update not allowed`. The install does a full clone. HEAD/branch mismatch. `updateInstead` (which extracts the working tree) only fires when the push targets the branch HEAD points at on the server. JSS 0.0.197+ auto-inits with HEAD=main, but older versions honor the operator's `init.defaultBranch` (often `gh-pages` for GitHub-Pages-heavy users). The install pushes both `HEAD:main` and `HEAD:gh-pages` — whichever matches HEAD extracts; the other just creates a ref. Idempotent on re-run. Already-bundled apps (pilot). jspod ships pilot at `/public/apps/pilot/` skip-if-exists. Auto-init refuses the push because the path is non-empty. The install translates the cryptic `repository not found` into a friendly `⊘ pilot: skipped` rather than scaring the user. Verified end-to-end `jspod install pilot` → `⊘ skipped (path already in use)`, exit 0 `jspod install alarm` on the running pod (JSS 0.0.196, init.defaultBranch=gh-pages) → `✓ alarm → http://localhost:5444/public/apps/alarm/\`, `index.html` reachable (200) with real content `jspod install --help` shows the subcommand-specific help `jspod --help` mentions `install` so users discover it Diff `index.js`: +155 LoC (subcommand dispatch, `runInstall`, `printInstallHelp`, main `--help` updated) `README.md`: +14 LoC ("Install Solid apps" section) Follow-ups (separate issues) #25 — generalize to arbitrary GitHub repos (`jspod install solid-apps/penny#v2`, `jspod install someone/cool-thing`) #24 — generalize further (non-git sources, registry, etc.)
Open Graph Description: Fixes #36. What `jspod install ` replaces the multi-step git-push recipe new users had to copy-paste. Defaults to `github.com/solid-apps/` as the source; one command per app or batch by listing sev...
X Description: Fixes #36. What `jspod install ` replaces the multi-step git-push recipe new users had to copy-paste. Defaults to `github.com/solid-apps/` as the source; one command per app or batch by listing sev...
Opengraph URL: https://github.com/JavaScriptSolidServer/jspod/pull/40
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b91f7e32-9c29-18cf-8a4d-db29cf693b52 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 849C:146A3D:2D72EFD:3BD18D1:6B0399F6 |
| html-safe-nonce | 2a43302da98a646a093b64d97122befa70a74eb5e077e5ba57f57df07e90af5b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDlDOjE0NkEzRDoyRDcyRUZEOjNCRDE4RDE6NkIwMzk5RjYiLCJ2aXNpdG9yX2lkIjoiODY0MzU1ODg4Mzk4MzU5NjAyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 046ea816e89cac2cddb75d682d790a94738792a57808ef015e602d46188e512c |
| hovercard-subject-tag | pull_request:3696979498 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/JavaScriptSolidServer/jspod/pull/40/files |
| twitter:image | https://avatars.githubusercontent.com/u/65864?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/65864?s=400&v=4 |
| og:image:alt | Fixes #36. What `jspod install ` replaces the multi-step git-push recipe new users had to copy-paste. Defaults to `github.com/solid-apps/` as the source; one command per app or batch by listing sev... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/JavaScriptSolidServer/jspod git https://github.com/JavaScriptSolidServer/jspod.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 1135610078 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/jspod |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1135610078 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/jspod |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width