-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup(core): adjust create dependencies context (#19070)
Co-authored-by: FrozenPandaz <[email protected]>
- Loading branch information
1 parent
50b6252
commit f2e20c8
Showing
28 changed files
with
760 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Type alias: DynamicDependency | ||
|
||
Ƭ **DynamicDependency**: `Object` | ||
|
||
A dynamic [ProjectGraph](../../devkit/documents/ProjectGraph) dependency between 2 projects | ||
|
||
This type of dependency indicates the source project MAY OR MAY NOT load the target project. | ||
|
||
#### Type declaration | ||
|
||
| Name | Type | Description | | ||
| :----------- | :---------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------- | | ||
| `source` | `string` | The name of a [ProjectGraphProjectNode](../../devkit/documents/ProjectGraphProjectNode) depending on the target project | | ||
| `sourceFile` | `string` | The path of a file (relative from the workspace root) where the dependency is made | | ||
| `target` | `string` | The name of a [ProjectGraphProjectNode](../../devkit/documents/ProjectGraphProjectNode) that the source project depends on | | ||
| `type` | typeof [`dynamic`](../../devkit/documents/DependencyType#dynamic) | - | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Type alias: ImplicitDependency | ||
|
||
Ƭ **ImplicitDependency**: `Object` | ||
|
||
An implicit [ProjectGraph](../../devkit/documents/ProjectGraph) dependency between 2 projects | ||
|
||
This type of dependency indicates a connection without an explicit reference in code | ||
|
||
#### Type declaration | ||
|
||
| Name | Type | Description | | ||
| :------- | :------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------- | | ||
| `source` | `string` | The name of a [ProjectGraphProjectNode](../../devkit/documents/ProjectGraphProjectNode) depending on the target project | | ||
| `target` | `string` | The name of a [ProjectGraphProjectNode](../../devkit/documents/ProjectGraphProjectNode) that the source project depends on | | ||
| `type` | typeof [`implicit`](../../devkit/documents/DependencyType#implicit) | - | |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Type alias: RawProjectGraphDependency | ||
|
||
Ƭ **RawProjectGraphDependency**: [`ImplicitDependency`](../../devkit/documents/ImplicitDependency) \| [`StaticDependency`](../../devkit/documents/StaticDependency) \| [`DynamicDependency`](../../devkit/documents/DynamicDependency) | ||
|
||
A [ProjectGraph](../../devkit/documents/ProjectGraph) dependency between 2 projects | ||
|
||
See [DynamicDependency](../../devkit/documents/DynamicDependency), [ImplicitDependency](../../devkit/documents/ImplicitDependency), or [StaticDependency](../../devkit/documents/StaticDependency) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Type alias: StaticDependency | ||
|
||
Ƭ **StaticDependency**: `Object` | ||
|
||
A static [ProjectGraph](../../devkit/documents/ProjectGraph) dependency between 2 projects | ||
|
||
This type of dependency indicates the source project ALWAYS load the target project. | ||
|
||
NOTE: StaticDependency#sourceFile MUST be present unless the source is the name of a [ProjectGraphExternalNode](../../devkit/documents/ProjectGraphExternalNode) | ||
|
||
#### Type declaration | ||
|
||
| Name | Type | Description | | ||
| :------------ | :-------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `source` | `string` | The name of a [ProjectGraphProjectNode](../../devkit/documents/ProjectGraphProjectNode) or [ProjectGraphExternalNode](../../devkit/documents/ProjectGraphExternalNode) depending on the target project | | ||
| `sourceFile?` | `string` | The path of a file (relative from the workspace root) where the dependency is made | | ||
| `target` | `string` | The name of a [ProjectGraphProjectNode](../../devkit/documents/ProjectGraphProjectNode) or [ProjectGraphExternalNode](../../devkit/documents/ProjectGraphExternalNode) that the source project depends on | | ||
| `type` | typeof [`static`](../../devkit/documents/DependencyType#static) | - | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f2e20c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nx-dev – ./
nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev