summaryrefslogtreecommitdiffstats
path: root/.air.conf
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-07-27 20:05:42 +0200
committerGitHub <noreply@github.com>2020-07-27 14:05:42 -0400
commite67c042511f859029f141a94d30824a4522898b9 (patch)
tree72635d38589893796ef11c65966562c362955d45 /.air.conf
parentbfb25e4be17ba33f17156aeb7c326d80e46855ac (diff)
downloadgitea-e67c042511f859029f141a94d30824a4522898b9.tar.gz
gitea-e67c042511f859029f141a94d30824a4522898b9.zip
Add 'watch-backend' (#12330)
* Add 'watch-backend' This leverages `air` to watch the backend files and trigger `make backend` automatically when they change. It seems to work rather well together with `watch-frontend`. Fixes: https://github.com/go-gitea/gitea/issues/12318 * rework docs to a new section for continuous build Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to '.air.conf')
-rw-r--r--.air.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/.air.conf b/.air.conf
new file mode 100644
index 0000000000..7b5a5cb86a
--- /dev/null
+++ b/.air.conf
@@ -0,0 +1,9 @@
+root = "."
+tmp_dir = ".air"
+
+[build]
+cmd = "make backend"
+bin = "gitea"
+include_ext = ["go", "tmpl"]
+exclude_dir = ["modules/git/tests", "services/gitdiff/testdata", "modules/avatar/testdata"]
+include_dir = ["cmd", "models", "modules", "options", "routers", "services", "templates"]