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