Răsfoiți Sursa

add fswatch.json for hot compile

skyblue 11 ani în urmă
părinte
comite
a04918e36d
1 a modificat fișierele cu 22 adăugiri și 0 ștergeri
  1. 22 0
      .fswatch.json

+ 22 - 0
.fswatch.json

@@ -0,0 +1,22 @@
+{
+    "paths": [
+		"."
+	],
+    "depth": 2,
+    "exclude": [
+		"^gogs$",
+        "~$",
+        "\\.swp$",
+        "\\.exe$",
+		"\\.swx$",
+		".*\\.log$"
+    ],
+    "include": [],
+    "command": [
+        "bash", "-c", "go build && ./gogs web"
+    ],
+    "env": {
+        "PROGRAM": "fswatch"
+    },
+    "enable-restart": false
+}