From 61e882e0fd29e97747cf0a21563c684a90f9f602 Mon Sep 17 00:00:00 2001 From: Ernst Widerberg Date: Tue, 14 Jun 2022 12:46:45 +0200 Subject: Update README (Prettier instructions) --- README.md | 9 ++++++--- 1 file 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 -- cgit v1.1