diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..a4f413c --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 23.5.0 diff --git a/compose.yaml b/compose.yaml index ce30132..2ce52e1 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,5 +1,9 @@ services: web: build: . + develop: + watch: + - path: . + action: rebuild ports: - 8080:8080 diff --git a/package.json b/package.json index 7b91ad6..a5df776 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "start": "NODE_PATH=./dist node dist/index.js", "buildandpush": "docker buildx build --push --platform=linux/amd64,linux/arm64 -t git.fai.st/bizcochito/bizcochito.onion .", "deploy": "npm run buildandpush && sleep 3 && kubectl rollout restart deploy/web -n web", - "dev": "npm run build && npm run start" + "local": "npm run build && npm run start", + "dev": "docker compose watch" } }