From 2b86e3fdaf735588d23709ddcdb89b093f6396dd Mon Sep 17 00:00:00 2001 From: Ben Woodward Date: Thu, 15 Jul 2021 09:01:18 -0700 Subject: Add make targets for prettier formatting (#50) --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3ac82a2..28b8537 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,14 @@ dev: yarn yarn start +.PHONY: fmt +fmt: + npx prettier --check . '!**/*.min.{css,js}' + +.PHONY: fmt.write +fmt.write: + npx prettier --write . '!**/*.min.{css,js}' + .PHONY: run run: docker run --rm -p 8080:80 $(TAG_LATEST) -- cgit v1.2.3