Commands
Run Nx through pnpm so the workspace wrapper and pinned CLI are used.
Workspace
Section titled “Workspace”| Command | Purpose |
|---|---|
pnpm start | Serve the web application |
pnpm build | Build the production renderer to www/ |
pnpm test | Run all Nx test targets |
pnpm lint | Run all Nx lint targets |
pnpm stylelint | Check CSS and SCSS |
pnpm format:check | Check formatting |
pnpm architecture:check | Check architecture, host, UI, and E2E contracts |
pnpm storybook | Serve the public-component Storybook |
Inspect and focus
Section titled “Inspect and focus”pnpm nx show project <project-name> --jsonpnpm nx show projectspnpm nx test <project-name> -- <file-or-pattern>pnpm nx run-many -t typecheckpnpm nx affected -t lint testInspect targets before forwarding runner-specific arguments.
Hosts and journeys
Section titled “Hosts and journeys”| Command | Purpose |
|---|---|
pnpm electron:start | Build and launch Electron |
pnpm electron:verify | Check the Electron host contract |
pnpm android:run | Build, sync, and launch Android |
pnpm ios:run | Build, sync, and launch iOS |
pnpm nx run trinity-android:verify-native | Sync Android and run its JVM unit tests, the push plugin’s included |
pnpm nx run trinity-ios:test-push | Run the push plugin’s TrinityPush XCTests (macOS) |
pnpm e2e:browser | Run canonical browser journeys with the disposable homeserver |
pnpm e2e:components | Run component browser suites |
pnpm e2e:all | Run every available registered E2E suite |
Homeserver-backed commands share fixed ports and run sequentially. See the relevant testing strategy or platform guide before interpreting a result.