diff --git a/docs/getting-started/clients/browser/index.md b/docs/getting-started/clients/browser/index.md index 3fb5cc03b..f292de17b 100644 --- a/docs/getting-started/clients/browser/index.md +++ b/docs/getting-started/clients/browser/index.md @@ -10,6 +10,22 @@ Before you start, you must complete the [Clients repository setup instructions]( ## Build instructions +:::tip Nx commands are preferred. + +We now recommend using Nx commands for building projects. For the browser extension: + +```bash +# Build and watch (chrome is the default) +npx nx serve browser +# Build and watch for specific browsers +npx nx serve browser --configuration=firefox-dev +npx nx serve browser --configuration=safari-dev +``` + +For complete Nx documentation and all available commands, see +[Using Nx to Build Projects](https://github.com/bitwarden/clients/blob/main/docs/using-nx-to-build-projects.md). +::: + 1. Build and run the extension: ```bash diff --git a/docs/getting-started/clients/cli/index.md b/docs/getting-started/clients/cli/index.md index 36068ba96..9e4917e72 100644 --- a/docs/getting-started/clients/cli/index.md +++ b/docs/getting-started/clients/cli/index.md @@ -17,6 +17,21 @@ Before you start, you must complete the [Clients repository setup instructions]( ## Build instructions +:::tip Nx commands are preferred. + +We now recommend using Nx commands for building projects. For the cli: + +```bash +# Build and watch (GPL) +npx nx serve cli --configuration=oss-dev +# Build and watch (Bitwarden) +npx nx serve cli --configuration=commercial-dev +``` + +For complete Nx documentation and all available commands, see +[Using Nx to Build Projects](https://github.com/bitwarden/clients/blob/main/docs/using-nx-to-build-projects.md). +::: + Build and run: diff --git a/docs/getting-started/clients/desktop/index.mdx b/docs/getting-started/clients/desktop/index.mdx index dcb5f33c1..f8e80a24b 100644 --- a/docs/getting-started/clients/desktop/index.mdx +++ b/docs/getting-started/clients/desktop/index.mdx @@ -37,6 +37,19 @@ These are available as additional dependencies in the Visual Studio Installer. +:::tip Nx commands are preferred. + +We now recommend using Nx commands for building projects. For desktop: + +```bash +# Build and serve (including the native module) +npx nx serve desktop +``` + +For complete Nx documentation and all available commands, see +[Using Nx to Build Projects](https://github.com/bitwarden/clients/blob/main/docs/using-nx-to-build-projects.md). +::: + ## Build native module The desktop application relies on a native module written in rust, which needs to be compiled diff --git a/docs/getting-started/clients/web-vault/index.mdx b/docs/getting-started/clients/web-vault/index.mdx index a1a2f317c..eee3d30f5 100644 --- a/docs/getting-started/clients/web-vault/index.mdx +++ b/docs/getting-started/clients/web-vault/index.mdx @@ -28,6 +28,21 @@ mkcert -cert-file dev-server.local.pem -key-file dev-server.local.pem localhost ## Build instructions +:::tip Nx commands are preferred. + +We now recommend using Nx commands for building projects. For web: + +```bash +# Build and watch (GPL) +npx nx serve web --configuration=oss-dev +# Build and watch (Bitwarden) +npx nx serve web --configuration=commercial-dev +``` + +For complete Nx documentation and all available commands, see +[Using Nx to Build Projects](https://github.com/bitwarden/clients/blob/main/docs/using-nx-to-build-projects.md). +::: + 1. Build and run the Web Vault.