mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 18:13:38 +08:00
docs(@angular-devkit/schematics): add Task to glossary table
Include explanation about Task Fixes #22764
This commit is contained in:
parent
154c7ce8f0
commit
dde1372f5b
@ -10,16 +10,17 @@ What distinguishes Schematics from other generators, such as Yeoman or Yarn Crea
|
||||
|
||||
# Glossary
|
||||
|
||||
| Term | Description |
|
||||
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| **Schematics** | A generator that executes descriptive code without side effects on an existing file system. |
|
||||
| **Collection** | A list of schematics metadata. Schematics can be referred by name inside a collection. |
|
||||
| **Tool** | The code using the Schematics library. |
|
||||
| **Tree** | A staging area for changes, containing the original file system, and a list of changes to apply to it. |
|
||||
| **Rule** | A function that applies actions to a `Tree`. It returns a new `Tree` that will contain all transformations to be applied. |
|
||||
| **Source** | A function that creates an entirely new `Tree` from an empty filesystem. For example, a file source could read files from disk and create a Create Action for each of those. |
|
||||
| **Action** | An atomic operation to be validated and committed to a filesystem or a `Tree`. Actions are created by schematics. |
|
||||
| **Sink** | The final destination of all `Action`s. |
|
||||
| Term | Description |
|
||||
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| **Schematics** | A generator that executes descriptive code without side effects on an existing file system. |
|
||||
| **Collection** | A list of schematics metadata. Schematics can be referred by name inside a collection. |
|
||||
| **Tool** | The code using the Schematics library. |
|
||||
| **Tree** | A staging area for changes, containing the original file system, and a list of changes to apply to it. |
|
||||
| **Rule** | A function that applies actions to a `Tree`. It returns a new `Tree` that will contain all transformations to be applied. |
|
||||
| **Source** | A function that creates an entirely new `Tree` from an empty filesystem. For example, a file source could read files from disk and create a Create Action for each of those. |
|
||||
| **Action** | An atomic operation to be validated and committed to a filesystem or a `Tree`. Actions are created by schematics. |
|
||||
| **Sink** | The final destination of all `Action`s. |
|
||||
| **Task** | A Task is a way to execute an external command or script in a schematic. A Task can be used to perform actions such as installing dependencies, running tests, or building a project. A Task is created by using the `SchematicContext` object and can be scheduled to run before or after the schematic `Tree` is applied. |
|
||||
|
||||
# Tooling
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user