DEV Community

Cover image for NRWL-NX Quick Introductions
Uttam Kumar Mishra
Uttam Kumar Mishra

Posted on • Edited on

2

NRWL-NX Quick Introductions

What is NX ?
Nx(Narwhal extension) is not a replacement of angular CLI, it is just an extension for the Angular CLI implementing monorepo-style development. It is an open-source toolkit created by Ex Googlers at a company called Narwhal for enterprise applications. It is also a collection of runtime libraries, linters, and code generators, which is helping large teams build better with Angular.

NX Workspace
A NXworkspace contains our Angular applications and libraries we create. Nx is not a replacement of Angular CLI, it just adds some extra capabilities to Angular CLI, so finally we can say an Nx workspace is an Angular CLI workspace.

Creating a New Nx Workspace
npx create-nx-workspace@latest workspacename --preset=angular //Using npx
npm init nx-workspace workspacename --preset=angular //Using npm init
yarn create nx-workspace workspacename --preset=angular // For Yarn

Conclusion
Like NX workspace, with Angular CLI also we can add different types of projects to a single workspace. This is great, but it is not sufficient to enable the monorepo-style development. Nx adds an extra layer of tooling to make this possible. Click here to learn full version of NX Tutorials

Neon image

Serverless Postgres in 300ms (❗️)

10 free databases with autoscaling, scale-to-zero, and read replicas. Start building without infrastructure headaches. No credit card needed.

Try for Free →

Top comments (0)

Image of Stellar post

🚀 Stellar Dev Diaries Series: Episode 1 is LIVE!

Ever wondered what it takes to build a web3 startup from scratch? In the Stellar Dev Diaries series, we follow the journey of a team of developers building on the Stellar Network as they go from hackathon win to getting funded and launching on mainnet.

Read more

👋 Kindness is contagious

DEV is better (more customized, reading settings like dark mode etc) when you're signed in!

Okay