Computation Caching by default, revamped docs, community plugins, and more in Nx 9.2!

Brandon Roberts
Nx Devtools
Published in
5 min readMar 31, 2020

--

Today, we are happy to announce the release of Nx 9.2 that includes many new features, including Computation Caching by default!

Nx is a set of Extensible Dev Tools for Monorepos, which we developed at Nrwl based on our experience working at Google and helping Fortune 500 enterprises build ambitious applications at scale.

If you aren’t familiar with it, learn about Nx at nx.dev/angular and nx.dev/react.

Computation Caching By Default

In Nx 9, we introduced computation caching with Nx. After some early feedback, and validation, computation caching is now enabled by default when using the Nx CLI!

Your most common computations such as building apps and libraries, running unit tests, lint checks, and E2E tests are now cached locally by default. With minimal changes, this keeps you from having to run the same tests twice, which is especially useful within a monorepo.

To further optimize the computation caching, Nx Cloud provides Distributed Computation Caching that scales across your entire development team. Learn more about Nx Cloud at nx.app.

Revamped Docs and New Guides

Nx is built by developers for developers of all levels of experience. To further support our developer community, we have restructured our documentation to provide a better on-boarding experience for developers looking to try Nx, an updated navigation menu, better visibility of Nx core plugins, and new guides for computation caching and incremental builds.

We are always updating the docs with new content to meet the needs of our users. If you’ve look at the docs before, its now a good time to take another look!

See the updated Nx docs at nx.dev!

Community plugins

Nx provides a core set of plugins that enable you to work at scale in a monorepo across many different ecosystems, such as Angular, React, Node, and more.

Nx also provides a foundation on which you can build your own plugins and extend the capabilities to further fit your needs. Whether it be integrating Ionic and React Native, to implementing a Domain-Driven Design approach to building your applications, Nx plugins give you the power to do so, and the infrastructure to support your plugin development.

We’ve already seen a few community plugins developed, and now have an official place to list them. Visit our community plugins page to see the official listing of community plugins. You can also see available plugins directly from the command-line using the Nx CLI.

Invoke the nx list command to see Nx core, and community plugins! If you’d like to learn how to create your own plugin, see our Nx Plugins guide.

Updates to latest libraries

We’ve also updated the following packages to their latest release versions:

  • Angular framework — 9.1.0
  • Angular CLI and DevKit — 9.1.0
  • Cypress — 4.x
  • Jest — 25.x
  • React — 16.10.x
  • TypeScript — 3.8.x

Each release also includes bug fixes, additional minor features, and build improvements.

How to Update Nx

Each release of Nx also contains additional minor features, and bug fixes. Releases of the Angular framework, Angular CLI, NgRx libraries, React, and Redux Toolkit were also updated.

Updating Nx can be done with the following commands, and will update your dependencies and code to the latest version:

yarn update

Or for npm

npm run update

Request early access to the new Nx Cloud!

Speed up your builds and tests by up to 90%! Nx Cloud provides a distributed computation cache to speed up build, test and lint commands. Turn it on without changing anything in your Nx workspace and instantly get the benefits.

  • Run CI up to 90% faster.
  • Never build or test the same code twice. If someone else within your organization already built a project, you can get the result from the Nx Cloud cache.
  • Get advanced insights about your build process to improve your team’s velocity.

Sign up for Nx Cloud at Nx.app!

New video course for Nx Workspaces!

We also recently launched a brand new premium video course on advanced practices for Nx workspaces. You can get it here!

We also have a free Nx workspaces course on youtube, where you’ll find all you need to know to get started with Nx! Instructor and Nrwl consultant, Isaac Mann, takes you through 5-minute video sessions on specific topics for a total of 30 minutes of learning time.

You’ll learn how an Nx workspace enables you to do more with your Angular and React apps and take advantage of the tool:

  • Out-of-the-box configuration for modern frameworks and tooling
  • Easy code-sharing with enforced API boundaries
  • Dependency-graph-aware tooling that allows you to run commands only on the code affected by a particular change
  • Ensure that Angular and React apps and their backend code all live happily in the same monorepo

Explore More

As always, if you are looking for enterprise consulting, training and support, you can find out more about how we work with our clients here.

If you liked this, click the 👏 below so other people will see this here on Medium. Follow Brandon Roberts and @nrwl_io to read more about Nx and Nrwl. Also follow Brandon, Nx, and Nrwl on Twitter!

--

--

Web dev, tech writer, DevRel at Nrwl, NgRx maintainer, GDE, sports fan, recovering gadget addict, and still learning. Gif game 💪🏿