aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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