Make dev mode one command and add VS Code config

npm run dev now runs scripts/dev-env.ts first, which creates .dev/site.env with
a known dev password and a random session secret, so a fresh clone serves a
working admin without anyone hand-building a hash. Adds .vscode launch
configurations and tasks for the dev server, one test file, and check-site, and
brings scripts/ under typecheck, which it had been missing.
This commit is contained in:
tanshu committed 2026-09-22 21:47:11 +05:30
1 parent a635c5a214
commit 1f41398370
8 files changed
+229 -11

No files matched your search

+2
View File
@@ -8,7 +8,9 @@
},
"scripts": {
"start": "node src/server.ts",
"predev": "node scripts/dev-env.ts",
"dev": "SECURE_COOKIES=false node --watch src/server.ts",
"dev:env": "node scripts/dev-env.ts",
"seed": "node scripts/seed-dev.ts",
"check-site": "node scripts/check-site.ts",
"verify": "node src/cli/verify.ts",