mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 06:00:56 +00:00
Update cheatsheets
This commit is contained in:
33
nx
Normal file
33
nx
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nx
|
||||
|
||||
> Manage `nx` workspaces.
|
||||
> More information: <https://nx.dev/l/r/getting-started/nx-cli>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user