add "deploy" script
trickyni trickyniv56@gmail.com
Sun, 24 May 2026 10:08:34 +0300
2 files changed,
7 insertions(+),
1 deletions(-)
M
README.md
→
README.md
@@ -16,3 +16,8 @@ ### local server
`bunx kushiyaki run dev` to deploy a local version of the website using [caddy](https://caddyserver.com/) at <https://localhost:3001> use `caddy stop` to remove the server (will be changed to an autoreload) + +### write to personal website + +- Replace `!<URL OF WEBSITE>` in `package.json` `scripts: "deploy"` with the ssh path for the server in which your website is hosted +- `bunx kushiyaki run deply` will automatically `rsync` the newly written "out" folder into that path
M
package.json
→
package.json
@@ -13,7 +13,8 @@ "author": "Ricka Hunt <ricka@trickyni.com>",
"type": "module", "main": "index.js", "scripts": { - "dev": "bun index.js && caddy run" + "dev": "bun index.js && caddy run", + "deploy": "bun write_website.js && rsync -rP out/ !<URL OF WEBSITE>" }, "bin": { "kushiyaki": "./index.js"