Skip to content

Commit

Permalink
docs(core): project crystal video (#21605)
Browse files Browse the repository at this point in the history
(cherry picked from commit 140d22f)
  • Loading branch information
isaacplmann authored and FrozenPandaz committed Feb 5, 2024
1 parent 489aa8f commit 1fe809f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/shared/concepts/inferred-tasks.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Inferred Tasks
# Inferred Tasks (Project Crystal)

In Nx version 18, many Nx plugins will automatically infer tasks for your projects based on the configuration of different tools. Many tools have configuration files which determine what a tool does. Nx is able to cache the results of running the tool. Nx plugins use the same configuration files to infer how Nx should [run the task](/features/run-tasks). This includes [fine-tuned cache settings](/features/cache-task-results) and automatic [task dependencies](/concepts/task-pipeline-configuration).

For example, the `@nx/webpack` plugin infers tasks to run webpack through Nx based on your repository's webpack configuration. This configuration already defines the destination of your build files, so Nx reads that value and caches the correct output files.

{% youtube
src="https://youtu.be/wADNsVItnsM"
title="Project Crystal"
/%}

## How Does a Plugin Infer Tasks?

Every plugin has its own custom logic, but in order to infer tasks, they all go through the following steps.
Expand Down

0 comments on commit 1fe809f

Please sign in to comment.