-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
21 lines (17 loc) · 752 Bytes
/
makefile
File metadata and controls
21 lines (17 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CLANG_FORMAT=node_modules/clang-format/bin/linux_x64/clang-format --style=Google
CSS_VALIDATOR=node_modules/css-validator/bin/css-validator
ESLINT=node_modules/eslint/bin/eslint.js
HTML_VALIDATE=node_modules/html-validate/bin/html-validate.js
PRETTIER=node_modules/prettier/bin-prettier.js
node_modules:
npm install clang-format prettier css-validator html-validate eslint eslint-config-google
pretty: node_modules
$(PRETTIER) --write */src/main/webapp/*.{html,css}
find */src/main/ -iname *.java | xargs $(CLANG_FORMAT) -i
find */src/main/ -iname *.js | xargs $(CLANG_FORMAT) -i
validate: node_modules
$(HTML_VALIDATE) */src/main/webapp/*.html
$(CSS_VALIDATOR) */src/main/webapp/*.css
$(ESLINT) */src/main/webapp/*.js
package:
mvn package