summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2025-09-06 23:55:19 +0200
committerAhmed AbdelHalim <[email protected]>2025-09-07 02:20:46 +0200
commit17168a489392847794de0aed15fe395230a38261 (patch)
tree60914d9df4b9b37852e54dcf72818b0df1a958fb /Makefile
Initial commit
This cleaned up and added linting/readme to the already created web app that I have been using to control vpn on my raspberry setup
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9c06e49
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+.PHONY: lint lint-html lint-css lint-go lint-js
+
+help:
+ @echo "Available lint commands:"
+ @echo " make lint - Run all linters"
+ @echo " make lint-html - Lint HTML files (html-validate)"
+ @echo " make lint-css - Lint CSS files (stylelint)"
+ @echo " make lint-go - Lint Go files (go vet + golangci-lint)"
+ @echo " make lint-js - Lint JavaScript files (eslint)"
+
+lint-html:
+ @echo "Linting HTML files..."
+ npx html-validate templates/*.html
+
+lint-css:
+ @echo "Linting CSS files..."
+ npx stylelint static/css/*.css
+
+lint-go:
+ @echo "Linting Go files..."
+ go vet ./...
+ golangci-lint run
+
+lint-js:
+ @echo "Linting JavaScript files..."
+ npx eslint static/js/*.js
+
+lint: lint-go lint-js lint-html lint-css
+ @echo "All linting complete!"