Graph dependencies within workspace
nx globally to invoke the command directly using
nx, or use
yarn nx, or
Open the project graph of the workspace in the browser:
Save the project graph into a json file:
nx graph --file=output.json
Generate a static website with project graph into an html file, accompanied by an asset folder called static:
nx graph --file=output.html
Show the graph where every node is either an ancestor or a descendant of todos-feature-main:
nx graph --focus=todos-feature-main
Include project-one and project-two in the project graph:
nx graph --include=project-one,project-two
Exclude project-one and project-two from the project graph:
nx graph --exclude=project-one,project-two
Show the graph where every node is either an ancestor or a descendant of todos-feature-main, but exclude project-one and project-two:
nx graph --focus=todos-feature-main --exclude=project-one,project-two
Watch for changes to project graph and update in-browser:
nx graph --watch
List of projects delimited by commas to exclude from the project graph.
Output file (e.g. --file=output.json or --file=dep-graph.html)
Use to show the project graph for a particular project and every node that is either an ancestor or a descendant.
Group projects by folder in the project graph
Bind the project graph server to a specific ip address.
Open the project graph in the browser.
Bind the project graph server to a specific port.
Show version number
Watch for changes to project graph and update in-browser