Skip to content

Nx Conf on October 17th in Phoenix AZ!Nx Conf on October 17th in Phoenix AZ, do not miss it! Tickets, Speakers, Schedule and more →

Main navigation

Nx DocsNx Cloud DocsPackagesCommunityNx ConfNx CloudNx ConsultingNx on Github
14k+
  • Getting Started
    • Intro to Nx
    • Core Tutorial
    • React Tutorial
    • Angular Tutorial
    • Node Tutorial
    Core Features
    • Run Tasks
    • Cache Task Results
    • Explore the Graph
    • Distribute Task Execution
    • Integrate with Editors
    • Automate Updating Dependencies
    • Enforce Project Boundaries
    Plugin Features
    • Use Task Executors
    • Use Code Generators
    • Create Your Own Plugin
    Concepts
    • Integrated Repos vs. Package-Based Repos
    • Mental Model
    • How Caching Works
    • Distributed Task Execution Guide
    • Task Pipeline Configuration
    • Affected
    • More Concept Guides »
    Recipes
    • CI Setup
    • Adopting Nx
    • All Recipes »
    Reference
    • Commands
    • nx.json
    • Project Configuration
    • .nxignore
    • Environment Variables
    • Packages
    • Nx Devkit

.nxignore

You may optionally add an .nxignore file to the root. This file is used to specify files in your workspace that should be completely ignored by Nx.

The syntax is the same as a .gitignore file.

When a file is specified in the .nxignore file:

  1. Changes to that file are not taken into account in the affected calculations.
  2. Even if the file is outside an app or library, nx workspace-lint won't warn about it.

Related Documentation

Concepts

  • Using Nx at Enterprises
  • Applications and Libraries
  • Creating Libraries
  • Library Types
  • Grouping Libraries

Recipes

  • Using ESLint in Nx Workspaces
  • Ban Dependencies with Certain Tags
  • Tag in Multiple Dimensions
  • Ban External Imports
  • Tags Allow List

Reference

  • format:check
  • format:write
  • workspace-lint
Report an issueEdit this page

Footer

Nx

Smart, Fast and Extensible Build System

TwitterGitHubSlackNewsletter

Resources

  • Blog
  • Youtube Channel
  • Nx Playbook
  • Nrwl
  • Press kit

Help

  • Documentation
  • Community
  • StackOverflow
  • Report Issues

Community

  • Twitter
  • Github
  • Newsletter
  • Slack
  • Help Us

Solutions

  • Nx
  • NxCloud
  • Nrwl

© 2022 made with by