-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
21 lines (17 loc) · 810 Bytes
/
makefile
File metadata and controls
21 lines (17 loc) · 810 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 portfolio/src/main/webapp/*.{html,css}
find portfolio/src/main/java -iname *.java | xargs $(CLANG_FORMAT) -i
find portfolio/src/main/webapp -iname *.js | xargs $(CLANG_FORMAT) -i
validate: node_modules
$(HTML_VALIDATE) portfolio/src/main/webapp/*.html
$(CSS_VALIDATOR) portfolio/src/main/webapp/*.css
$(ESLINT) portfolio/src/main/webapp/*.js
package:
mvn package