✨ This workspace has been generated by Nx, Smart Monorepos · Fast CI. ✨
Enhance your Nx experience by installing Nx Console 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.
Add Nx plugins to leverage their code generators and automated, inferred tasks.
# Add plugin
bunx add @nx/react
# Use code generator
bunx generate @nx/react:app demo
# Run development server
bunx serve demo
# View project details
bunx show project demo --web
Run bunx list
to get a list of available plugins and whether they have
generators. Then run bunx list <plugin-name>
to see what generators are
available.
Learn more about code generators and inferred tasks in the docs.
To execute tasks with Nx use the following syntax:
bunx <target> <project> <...options>
You can also run multiple targets:
bunx run-many -t <target1> <target2>
..or add -p
to filter specific projects
bunx run-many -t <target1> <target2> -p <proj1> <proj2>
Targets can be defined in the package.json
or projects.json
. Learn more
in the docs.
Nx comes with local caching already built-in (check your nx.json
). On CI you
might want to go a step further.
Run bunx graph
to show the graph of the workspace.
It will show tasks that you can run with Nx.