From 9f8edc9891ccc5f8d828a57d0efbe5c1bdde1d07 Mon Sep 17 00:00:00 2001 From: Locour Date: Sun, 7 Nov 2021 19:48:43 +0100 Subject: [PATCH] nx: add page (#7224) --- pages/common/nx.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/nx.md diff --git a/pages/common/nx.md b/pages/common/nx.md new file mode 100644 index 0000000000..328b63494e --- /dev/null +++ b/pages/common/nx.md @@ -0,0 +1,28 @@ +# nx + +> CLI utility for managing `nx` workspaces. +> More information: . + +- Build a specific project: + +`nx build {{project}}` + +- Test a specific project: + +`nx test {{project}}` + +- Execute a target on a specific project: + +`nx run {{project}}:{{target}}` + +- Execute a target on multiple projects: + +`nx run-many --target {{target}} --projects {{project1}},{{project2}}` + +- Execute a target on all projects in the workspace: + +`nx run-many --target {{target}} --all` + +- Execute a target only on projects that have been changed: + +`nx affected --target {{target}}`