Get StartedPluginsCommunityNx CloudNx ConsultingNx on Github
  • Getting Started
    • Intro to Nx
    • Nx Setup
    • Nx CLI
    • Nx Editor Plugins
    Tutorial
    • 1 - Create Application
    • 2 - Add E2E Test
    • 3 - Display Todos
    • 4 - Connect to API
    • 5 - Add Node Application
    • 6 - Configure Proxy
    • 7 - Share Code
    • 8 - Create Libraries
    • 9 - Dep Graph
    • 10 - Use Computation Caching
    • 11 - Test Affected Projects
    • 12 - Summary
    Using Nx
    • Computation Caching
    • Rebuild Only What is Affected
    • Monorepos
    • Updating Nx
    • Configuration
    • Nx Plugins and Devkit
    Migration
    • Overview
    • From CRA
    • Adding to Monorepo
    • Preserving Git Histories

Deep Dive

  • Executors / Builders
    • Using Executors / Builders
    • Running Custom Commands
    • Creating Custom Builders
    Generators
    • Using Generators
    • Workspace Generators
    Workspace Structure
    • Creating Libraries
    • Library Types
    • Grouping Libraries
    • Buildable and Publishable Libraries
    • Using Tags
    • Dependency Graph
    • Extending the Project Graph
    CI
    • Distributed CI: Overview
    • Distributed CI: Azure
    • Distributed CI: Jenkins
    • Incremental Builds
    Guides
    • Adding Images, Fonts, and Files
    • Using Environment Variables
    • Using Nx at Enterprises
    • Using ESLint in Nx Workspaces
    • JavaScript and TypeScript
    • Configuring Browser Support
    • Next.js projects with Nx
    • Enable Webpack 5 for Next.js
    Examples
    • Nx Micro-Frontend Example
    • Powering Up React Development With Nx
    • Using Apollo GraphQL

API / Reference

  • CLI
    • generate
    • serve
    • build
    • test
    • lint
    • e2e
    • run
    • dep-graph
    • run-many
    • affected
    • affected:build
    • affected:test
    • affected:lint
    • affected:e2e
    • affected:dep-graph
    • affected:apps
    • affected:libs
    • print-affected
    • format:check
    • format:write
    • migrate
    • report
    • list
    • workspace-lint
    • workspace-generator
    • connect-to-nx-cloud
    Workspace
    • Overview
    • library generator
    • move generator
    • remove generator
    • run-commands generator
    • workspace-generator generator
    • run-commands executor
    • run-script executor
    • tsc executor
    web
    • Overview
    • application generator
    • build executor
    • dev-server executor
    • file-server executor
    • package executor
    angular
    • Overview
    • application generator
    • downgrade-module generator
    • karma-project generator
    • karma generator
    • library generator
    • move generator
    • ngrx generator
    • convert-tslint-to-eslint
    • stories generator
    • storybook-configuration generator
    • storybook-migrate-defaults-5-to-6 generator
    • storybook-migrate-stories-to-6-2 generator
    • upgrade-module generator
    • package executor
    • ng packagr lite executor
    • webpack-browser executor
    • delegate-build executor
    react
    • Overview
    • application generator
    • component generator
    • component-cypress-spec generator
    • component-story generator
    • library generator
    • redux generator
    • stories generator
    • storybook-configuration generator
    • storybook-migrate-defaults-5-to-6 generator
    jest
    • Overview
    • jest executor
    cypress
    • Overview
    • cypress executor
    storybook
    • Overview
    • configuration generator
    • cypress-project generator
    • migrate-defaults-5-to-6 generator
    • migrate-stories-to-6-2 generator
    • Executors / Builders
    linter
    • eslint executor
    • lint executor
    node
    • Overview
    • application generator
    • library generator
    • build executor
    • execute executor
    • package executor
    express
    • Overview
    • application generator
    nest
    • Overview
    • application generator
    • class generator
    • controller generator
    • decorator generator
    • filter generator
    • gateway generator
    • guard generator
    • interceptor generator
    • interface generator
    • library generator
    • middleware generator
    • module generator
    • pipe generator
    • provider generator
    • resolver generator
    • service generator
    • convert-tslint-to-eslint
    next
    • Overview
    • application generator
    • component generator
    • page generator
    • build executor
    • server executor
    • export executor
    gatsby
    • Overview
    • application generator
    • component generator
    • page generator
    • build executor
    • server executor
    Nx Plugin
    • Overview
    • executor generator
    • migration generator
    • plugin generator
    • generator generator
    • e2e executor
    Nx Devkit
    • index
    • ngcli_adapter

Intro to Nx

Nx is a smart and extensible build framework that helps you develop, test, build, and scale React applications with fully integrated support for modern libraries like Jest, Cypress, ESLint, and more. Nx also supports React frameworks like Gatsby and Next.js.

10-Minute Nx Overview

Philosophy

Nx is built on a technology agnostic core that maintains modular units of code and understands the dependency graph between them. Developers comprehend that your app contains two pages that each use a shared button component. Nx uses this same knowledge to provide insights and performance improvements. There's a whole ecosystem of plugins that build on this foundation.

Nx becomes more valuable as you scale, solving problems that are frustrating for small teams, but paralyzing for large teams.

Nx works especially well for monorepos. Each new app added to a monorepo provides more opportunities to share code and tooling but that often comes at the cost of a compounding slowdown in the CI pipeline. Nx ensures that adding another app to the repo does not increase the existing app’s test or build time.

Features

  • Test (or builds or lints) only the projects affected by a code change.
  • Cache command output locally so that future runs on the same code happen in seconds. The paid Nx Cloud offering allows this cache to be shared across every developer in your organization.
  • Provide a consistent syntax for executing commands. nx build my-app works no matter what framework my-app uses.
  • Automate code modification tasks with generators.
  • Access a thriving ecosystem of plugins from Nrwl and the community.

Learn Nx Fundamentals

  • Interactive Nx Tutorial (with videos)
  • Free Nx Course on Egghead: Scale React Development with Nx
  • 45-Minute Walkthrough

Dive Deep

  • Nx CLI
  • Configuration Files
  • Computation Caching
  • Rebuilding What is Affected

Resources

  • Blog
  • Nrwl

Help

  • Documentation
  • Community
  • StackOverflow
  • Report Issues

Community

  • Twitter
  • Github
  • Help us
Created with by
© 2021

Before You Continue...

Nx is a smart and extensible build framework that has first-class support for many frontend and backend technologies.

Please select the flavor you want to learn more about.

React
Angular
Node