Org
✨ This workspace has been generated by Nx, Smart Monorepos · Fast CI. (opens in a new tab) ✨
Integrate with editors
Enhance your Nx experience by installing Nx Console (opens in a new tab) for your favorite editor. Nx Console provides an interactive UI to view your projects, run tasks, generate code, and more! Available for VSCode, IntelliJ and comes with a LSP for Vim users.
Nx plugins and code generators
Add Nx plugins to leverage their code generators and automated, inferred tasks.
# Add plugin
npx nx add @nx/react
# Use code generator
npx nx generate @nx/react:app demo
# Run development server
npx nx serve demo
# View project details
npx nx show project demo --webRun npx nx list to get a list of available plugins and whether they have generators. Then run npx nx list <plugin-name> to see what generators are available.
Learn more about code generators (opens in a new tab) and inferred tasks (opens in a new tab) in the docs.
Running tasks
To execute tasks with Nx use the following syntax:
npx nx <target> <project> <...options>You can also run multiple targets:
npx nx run-many -t <target1> <target2>..or add -p to filter specific projects
npx nx run-many -t <target1> <target2> -p <proj1> <proj2>Targets can be defined in the package.json or projects.json. Learn more in the docs (opens in a new tab).
Set up CI!
Nx comes with local caching already built-in (check your nx.json). On CI you might want to go a step further.
- Set up remote caching (opens in a new tab)
- Set up task distribution across multiple machines (opens in a new tab)
- Learn more how to setup CI (opens in a new tab)
Explore the project graph
Run npx nx graph to show the graph of the workspace.
It will show tasks that you can run with Nx.