From 185c39d28916f268e30d68c6ef02edd701e46d77 Mon Sep 17 00:00:00 2001 From: Toni Koskinen Date: Fri, 27 Mar 2026 12:12:16 +0200 Subject: [PATCH] docs: update README.md with testing, typechecking, and building instructions --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/README.md b/README.md index 0aa02c8..7bd3af9 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,41 @@ docker compose up -d --build By default frontend can be accessed in [localhost:4200](http://localhost:4200) By default backend can be accessed in [localhost:3000/api](http://localhost:3000/api) + +## Testing + +Run tests for a specific project: +````sh +pnpm nx run web-app:test --outputStyle=static +```` + +Run all tests in the workspace: +````sh +pnpm nx run-many -t test --all --outputStyle=static +```` + +## Typechecking + +Run typecheck for all projects: +````sh +pnpm nx run-many -t typecheck --all --outputStyle=static +```` + +Run typecheck for a single project: +````sh +pnpm nx run web-app:typecheck --outputStyle=static +pnpm nx run api:typecheck --outputStyle=static +```` + +## Building + +Build a specific application: +````sh +pnpm nx run web-app:build --outputStyle=static +pnpm nx run api:build --outputStyle=static +```` + +Build all projects that define a build target: +````sh +pnpm nx run-many -t build --all --outputStyle=static +````