From 72b61a2dd2baf955b36fe31dbafb495682610225 Mon Sep 17 00:00:00 2001 From: rowan Date: Sun, 1 Dec 2024 01:26:38 -0600 Subject: [PATCH] fix build stuff --- dev | 2 +- package.json | 7 ++++--- static/static | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 120000 static/static diff --git a/dev b/dev index 9028aed..4e4471a 100755 --- a/dev +++ b/dev @@ -10,5 +10,5 @@ inotifywait --recursive --monitor --format "%e %w%f" \ --event modify,move,create,delete ./content ./layouts \ | while read changed; do echo $changed - eval "roxy_cli content dist" + eval "npm run build" done diff --git a/package.json b/package.json index 5bb1287..8f7e197 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,10 @@ "version": "1.0.0", "main": "index.js", "scripts": { - "watch": "./dev &", - "dev": "npm run watch; wrangler pages dev --live-reload", - "deploy": "wrangler pages deploy --project-name kitsunecafe" + "build": "roxy_cli content dist && ln -s $(realpath static) dist/static", + "watch": "./dev", + "dev": "npm run build && npm run watch & wrangler pages dev --live-reload && fg", + "deploy": "npm run build && wrangler pages deploy --project-name kitsunecafe" }, "keywords": [], "author": "", diff --git a/static/static b/static/static deleted file mode 120000 index 2c5c969..0000000 --- a/static/static +++ /dev/null @@ -1 +0,0 @@ -/home/rowan/Development/kitsu.cafe/static \ No newline at end of file