aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-02 23:01:44 -0400
committerGitHub <noreply@github.com>2025-04-02 23:01:44 -0400
commitcaa0befcf880c34fb599a9d22dac27a1299cd543 (patch)
treed1779bfab2a0f690fce1fa8a160f0c00b7775ae7 /Makefile
parentc76a06e7235c6ac86076b1e7fde18729eb9cfe29 (diff)
parent21a9d77788653f30fef4f3b37e8163a833f1a5d9 (diff)
downloadanubis-Xe/new-anubis.tar.xz
anubis-Xe/new-anubis.zip
Merge branch 'main' into Xe/new-anubisXe/new-anubis
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..380d9f1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+NODE_MODULES = node_modules
+
+.PHONY: build assets deps lint test
+
+$(NODE_MODULES):
+ npm run assets
+
+assets: $(NODE_MODULES)
+
+deps: assets
+ npm ci
+ go mod download
+
+build: deps
+ npm run build
+ @echo "Anubis is now built to ./var/anubis"
+
+all: build
+
+lint:
+ go vet ./...
+ staticcheck ./...
+
+test:
+ npm run test \ No newline at end of file