Nrwl Nx Now Supports Automatic Migrations

Victor Savkin
Nx Devtools
Published in
2 min readDec 5, 2017

--

Victor Savkin is a co-founder of nrwl.io, providing Angular consulting to enterprise teams. He was previously on the Angular core team at Google, and built the dependency injection, change detection, forms, and router modules.

Nx is an open source toolkit for enterprise Angular applications, which is designed to help you create and build enterprise-grade Angular applications with proven project structure and patterns.

One of the main things enterprise teams want is stability. They don’t want their applications to break any time a new version of a library or a tool gets released.

That’s why we added support for automatic migrations to Nx. With it we can add new features to Nx without breaking existing workspaces.

How does it work

Say we created a Workspace using Nx 0.2.0. Then, half a year later, we decided to upgrade to Nx 0.5.0.

Imagine the 0.5.0 version requires a new peer dependency and needs you to add more information to .angular-cli.json. Until now, you would have to manually go through the Nx change log to find all the required changes, which you would have to apply manually.

Nx 0.3.0 adds the nx-migrate command that does it for you. Just run npm run nx-migrate after upgrading @nrwl/schematics.

Try It Out

Go to nrwl.io/nx to get started with Nrwl Nx.

--

--

Nrwlio co-founder, Xoogler, Xangular. Work on dev tools for TS/JS. @NxDevTools and Nx Cloud architect. Calligraphy and philosophy enthusiast. Stoic.