summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJulien Dessaux2022-10-09 18:26:01 +0200
committerJulien Dessaux2022-10-09 18:26:01 +0200
commit2569c6332fb1f9b695b984f2a8f34eaee3f81d89 (patch)
tree8a0e0b6413de0d0a4441adddbf03c7ba661481ef /GNUmakefile
parentTweaked display (diff)
downloadjeux-de-mots-2569c6332fb1f9b695b984f2a8f34eaee3f81d89.tar.gz
jeux-de-mots-2569c6332fb1f9b695b984f2a8f34eaee3f81d89.tar.bz2
jeux-de-mots-2569c6332fb1f9b695b984f2a8f34eaee3f81d89.zip
Added eslint validation
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..bb10536
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,18 @@
+SHELL:=bash
+
+.PHONY: check
+check: ## make check # Check syntax of eventline jobs
+ eslint index.js
+
+.PHONY: init
+init: ## make init # initialize project dependencies
+ npm install eslint
+
+.PHONY: serve
+serve: ## make serve # run a python web server
+ python -m http.server 8000
+
+help:
+ @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
+
+.DEFAULT_GOAL := help