create-astroid 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +2 -4
- package/package.json +2 -2
- package/template/README.md +1 -1
- package/template/docs/RUNBOOK.md +5 -3
package/index.mjs
CHANGED
|
@@ -488,10 +488,8 @@ async function main() {
|
|
|
488
488
|
]
|
|
489
489
|
: []),
|
|
490
490
|
]),
|
|
491
|
-
" #
|
|
492
|
-
"
|
|
493
|
-
" wrangler r2 bucket create " + key + "-media",
|
|
494
|
-
" wrangler kv namespace create RL && wrangler kv namespace create DRAFTS",
|
|
491
|
+
" # create the Cloudflare resources wrangler.jsonc names, filling in their ids:",
|
|
492
|
+
" pnpm exec astroid provision",
|
|
495
493
|
" # apply migrations, seed the home page + your first editor:",
|
|
496
494
|
" wrangler d1 migrations apply DB --remote",
|
|
497
495
|
" wrangler d1 execute DB --remote --file seed/home.seed.sql",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astroid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Scaffold a new Astroid site — an editable, multi-editor Astro app on Cloudflare Workers — in one command.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astro",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@better-auth/passkey": "^1.7.2",
|
|
35
35
|
"@louise-toolkit/astro": "^0.2.7",
|
|
36
|
-
"astroidjs": "0.
|
|
36
|
+
"astroidjs": "0.16.0",
|
|
37
37
|
"better-auth": "^1.7.2",
|
|
38
38
|
"louise-toolkit": "^0.33.0"
|
|
39
39
|
},
|
package/template/README.md
CHANGED
|
@@ -50,7 +50,7 @@ pnpm astroid deploy # provision + migrate + secrets + deploy (asks f
|
|
|
50
50
|
```sh
|
|
51
51
|
wrangler d1 create __KEY__
|
|
52
52
|
wrangler r2 bucket create __KEY__-media
|
|
53
|
-
wrangler kv namespace create
|
|
53
|
+
wrangler kv namespace create __KEY__-rl && wrangler kv namespace create __KEY__-drafts
|
|
54
54
|
# paste the printed ids into wrangler.jsonc, then:
|
|
55
55
|
wrangler secret put SESSION_SECRET # openssl rand -base64 32
|
|
56
56
|
wrangler d1 migrations apply DB --remote
|
package/template/docs/RUNBOOK.md
CHANGED
|
@@ -29,13 +29,15 @@ edit mode.
|
|
|
29
29
|
|
|
30
30
|
## Provisioning (first deploy)
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
`pnpm exec astroid provision` creates every resource `wrangler.jsonc` still
|
|
33
|
+
names by placeholder and fills in its ID. It asks first; `--dry-run` shows the
|
|
34
|
+
plan. By hand, it's:
|
|
33
35
|
|
|
34
36
|
```sh
|
|
35
37
|
wrangler d1 create __KEY__
|
|
36
38
|
wrangler r2 bucket create __KEY__-media
|
|
37
|
-
wrangler kv namespace create
|
|
38
|
-
wrangler kv namespace create
|
|
39
|
+
wrangler kv namespace create __KEY__-rl
|
|
40
|
+
wrangler kv namespace create __KEY__-drafts
|
|
39
41
|
```
|
|
40
42
|
|
|
41
43
|
<!-- Record anything that was NOT obvious: custom domains, DNS, account ids when
|