add a rule for tidy checker
authorLaurent Mazet <mazet@softndesign.org>
Mon, 28 Dec 2020 09:53:05 +0000 (10:53 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Mon, 28 Dec 2020 09:53:05 +0000 (10:53 +0100)
Makefile

index cf855d8c59eb2d989bf3b36f4f755ebd25d24a02..1015463f6039533d47e897eeb1da3b8ee8f89987 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,8 @@ PORT = 3000
 
 ESLINT?=eslint
 
+TIDY?=tidy
+
 ifeq (, $(shell which $(firstword ${ESLINT})))
        ESLINT?=npx eslint
 endif
@@ -34,5 +36,8 @@ public/dict/list.js:
 eslint:
        -${ESLINT} **/*.js
 
+tidy:
+       -${TIDY} -xml -errors -q public/*.html
+
 start-dev-server: lang
        cd server && make start-dev-server