diff options
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | README.md | 6 |
2 files changed, 11 insertions, 3 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) |
| @@ -27,14 +27,14 @@ make run | |||
| 27 | This project uses [Prettier](https://prettier.io/) formatting and all pull requests must pass | 27 | This project uses [Prettier](https://prettier.io/) formatting and all pull requests must pass |
| 28 | the automated lint checks prior to merging. | 28 | the automated lint checks prior to merging. |
| 29 | 29 | ||
| 30 | Run the link check with: | 30 | Run the lint check with: |
| 31 | 31 | ||
| 32 | ``` | 32 | ``` |
| 33 | npx prettier --check . '!**/*.min.{css,js}' | 33 | make fmt |
| 34 | ``` | 34 | ``` |
| 35 | 35 | ||
| 36 | Rewrite the files to resolve any style issues with: | 36 | Rewrite the files to resolve any style issues with: |
| 37 | 37 | ||
| 38 | ``` | 38 | ``` |
| 39 | npx prettier --write . '!**/*.min.{css,js}' | 39 | make fmt.write |
| 40 | ``` | 40 | ``` |
