diff options
| author | Ben Woodward <ben@bdw.to> | 2021-07-15 09:01:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-15 09:01:18 -0700 |
| commit | 2b86e3fdaf735588d23709ddcdb89b093f6396dd (patch) | |
| tree | e9443f53d99fc4ece965ebd2922b4a9557f384e8 /Makefile | |
| parent | 210433598a3072ed0ade022a580ac4522e491c01 (diff) | |
Add make targets for prettier formatting (#50)
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -14,6 +14,14 @@ dev: | |||
| 14 | yarn | 14 | yarn |
| 15 | yarn start | 15 | yarn start |
| 16 | 16 | ||
| 17 | .PHONY: fmt | ||
| 18 | fmt: | ||
| 19 | npx prettier --check . '!**/*.min.{css,js}' | ||
| 20 | |||
| 21 | .PHONY: fmt.write | ||
| 22 | fmt.write: | ||
| 23 | npx prettier --write . '!**/*.min.{css,js}' | ||
| 24 | |||
| 17 | .PHONY: run | 25 | .PHONY: run |
| 18 | run: | 26 | run: |
| 19 | docker run --rm -p 8080:80 $(TAG_LATEST) | 27 | docker run --rm -p 8080:80 $(TAG_LATEST) |
