Add nodemon, nodemon.json and update dev script

Add a nodemon.json config to watch src and public (ext: astro, ts, html), add nodemon as a devDependency, and change the package.json "dev" script to run nodemon --config nodemon.json --exec 'astro build' (replacing the previous "astro dev"). Also remove the preview script.
This commit is contained in:
Ryan Wang
2026-04-09 14:42:08 +08:00
parent 6f1cede536
commit e85fbd62f4
3 changed files with 191 additions and 8 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"verbose": false,
"watch": ["src/**/*", "public/**/*"],
"ext": "astro,ts,html"
}