summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnst Widerberg <ernst@sunet.se>2022-06-14 12:46:45 +0200
committerErnst Widerberg <ernst@sunet.se>2022-06-14 12:46:45 +0200
commit61e882e0fd29e97747cf0a21563c684a90f9f602 (patch)
tree61de061a0ea3b6f910120dd761d4eca450dfdbcd
parentafa0ee1b67e34b8b568a48210d283b0317096c17 (diff)
Update README (Prettier instructions)HEADmain
-rw-r--r--README.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/README.md b/README.md
index 71a5953..0bef849 100644
--- a/README.md
+++ b/README.md
@@ -22,9 +22,12 @@ An example configuration is supplied in `.env`, which corresponds to the default
| | |
|-|-|
-| `npm run start` | Compile and start Parcel development server with hot reloading |
-| `npm run build` | Only compile, normally not used except in Docker workflow |
-| `docker-compose up` | Compile and serve from dockerized nginx (production setup) |
+| `npm run start` | Compile and start Parcel development server with hot reloading |
+| `npm run build` | Only compile, normally not used except in Docker workflow |
+| `docker-compose up` | Compile and serve from dockerized nginx (production setup) |
+| `npx prettier --write src` | Format code with Prettier* |
+
+*You might want to configure your editor to e.g. format automatically on file write. In this case just make sure your setup respects the Prettier configuration in `package.json` and the contents of `.prettierignore`.
## Explanation of env var injection