summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJulien Dessaux2022-10-22 18:38:28 +0200
committerJulien Dessaux2022-10-22 18:38:28 +0200
commit9c464327fa0c026d638efa82af03710b5b6973b1 (patch)
treed21505325288930ffbd29d24d2b1f33c4cc6759b /GNUmakefile
parentCompute words and points from placed letters (diff)
downloadjeux-de-mots-9c464327fa0c026d638efa82af03710b5b6973b1.tar.gz
jeux-de-mots-9c464327fa0c026d638efa82af03710b5b6973b1.tar.bz2
jeux-de-mots-9c464327fa0c026d638efa82af03710b5b6973b1.zip
Began writing an express backend
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index bb10536..6b50894 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,16 +1,22 @@
+PATH:=$(PATH):$(PWD)/node_modules/.bin
SHELL:=bash
.PHONY: check
check: ## make check # Check syntax of eventline jobs
- eslint index.js
+ eslint main.js
+ (cd static; eslint index.js)
.PHONY: init
init: ## make init # initialize project dependencies
- npm install eslint
+ npm install
.PHONY: serve
-serve: ## make serve # run a python web server
- python -m http.server 8000
+serve: ## make serve # run a self reloading nodejs web server
+ nodemon main.js
+
+.PHONY: run
+run: ## make run # run a production nodejs web server
+ node main.js
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'