Skip to content

Commit 2accdd9

Browse files
committed
scripts: add walkthrough:* convenience commands
Five new package.json scripts wrapping the most common walkthrough flows, so contributors don't have to remember the flags: walkthrough:build Regenerate the walkthrough in dev layout. walkthrough:build:prod Regenerate with --minify + --base-path matching the GH Pages deploy shape. walkthrough:serve Start the local HTTP server on :8080. walkthrough:dev Build + serve in one command. walkthrough:deploy:val Upload val/*.ts to Val Town. The bare `walkthrough` script still works for any other subcommand (token, doctor, deploy-val with flags, etc.) — these are sugar, not replacements.
1 parent 751aeb5 commit 2accdd9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@
6161
"type": "tsgo --noEmit -p .config/tsconfig.check.json",
6262
"update": "node scripts/update.mts",
6363
"update:data:npm": "node scripts/update-data-npm.mts",
64-
"walkthrough": "node scripts/walkthrough.mts"
64+
"walkthrough": "node scripts/walkthrough.mts",
65+
"walkthrough:build": "node scripts/walkthrough.mts generate walkthrough.json",
66+
"walkthrough:build:prod": "node scripts/walkthrough.mts --minify --base-path=/socket-packageurl-js generate walkthrough.json",
67+
"walkthrough:serve": "node scripts/walkthrough.mts serve",
68+
"walkthrough:dev": "node scripts/walkthrough.mts generate walkthrough.json && node scripts/walkthrough.mts serve",
69+
"walkthrough:deploy:val": "node scripts/walkthrough.mts deploy-val"
6570
},
6671
"devDependencies": {
6772
"@anthropic-ai/claude-code": "2.1.92",

0 commit comments

Comments
 (0)