Soft'N'Design Software
/
projects
/
trivabble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa59535
)
add a rule for tidy checker
author
Laurent Mazet
<mazet@softndesign.org>
Mon, 28 Dec 2020 09:53:05 +0000
(10:53 +0100)
committer
Laurent Mazet
<mazet@softndesign.org>
Mon, 28 Dec 2020 09:53:05 +0000
(10:53 +0100)
Makefile
patch
|
blob
|
blame
|
history
diff --git
a/Makefile
b/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