Commit c10ec2f
authored
feat: bump jss to 0.0.195 and enable --git by default (#27)
JSS 0.0.195 (JavaScriptSolidServer/JavaScriptSolidServer#466)
adds auto-init on first push, which closes the last gap that
prevented the git HTTP backend from being useful out of the box.
This PR turns on JSS's git backend by default in jspod, so every
fresh `npx jspod` produces a pod that is also a real git remote:
- `git clone http://localhost:5444/public/apps/<name>` for any
public-read path
- `git push http://localhost:5444/public/apps/<name>` for any
owner-write path (auto-creates the bare repo on first push)
- `git pull` to stay current
Implementation:
- package.json: bump javascript-solid-server from ^0.0.194 to
^0.0.195
- options.git defaults true; new --no-git CLI flag for opt-out
(matches existing --no-auth / --no-open shape)
- --git or --no-git is always passed explicitly to JSS so the
spawn intent is unambiguous regardless of JSS's own default
- docs.html grows a "Git remote" section explaining clone / push /
auth ergonomics with a link to the upstream
Known follow-up (out of scope here): git CLI doesn't speak DPoP
natively, so push from the CLI today needs
`git -c http.extraHeader="Authorization: DPoP <token>"`. Worth a
dedicated jspod helper script + dedicated doc; tracked separately.
Refs #1 #261 parent c62d3c8 commit c10ec2f
3 files changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
122 | 138 | | |
123 | 139 | | |
124 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| 120 | + | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| |||
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
| 140 | + | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
| |||
386 | 390 | | |
387 | 391 | | |
388 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
389 | 399 | | |
390 | 400 | | |
391 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
0 commit comments