nx
project# guided setup process npx nx@latest init # starting from scratch npx create-nx-workspace@latest myorg # choose Integrate Monorepo # e2e tests are readily configured
Choose Integrate Monorepo
from options.
e2e
tests are readily configured when spinning up a project.
# example: create product-list that is a react lib npx nx g @nx/react:lib product-list
nx console
plugins in IDEs will allow you to do this in a form-format instead of the cli-format.
Speeds up workspace compilation.
npx nx g @nx/workspace:remove project-name
nx graph # spins up graph at http://127.0.0.1:4211/projects nx teardown # closing down service and destroying the db
affected
affected
isolates the script running to the current changes made to the graph.
nx affected -t run-tsc nx affected -t <task-name> # where run-tsc is defined in package.json is: "scripts": { "run-tsc": "tsc -b" } # main checks nx affected -t type-check nx affected -t build nx affected -t lint