-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(devkit): allow to customize overwrite mode in generateFiles (#26354
) Adds a new capability to choose how to handle already existing target files when using a generator. See #17925 Co-authored-by: Michael Monerau <micmo@qontrol.io>
- Loading branch information
1 parent
8800a30
commit dd6eda8
Showing
9 changed files
with
167 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Enumeration: OverwriteStrategy | ||
|
||
Specify what should be done when a file is generated but already exists on the system | ||
|
||
## Table of contents | ||
|
||
### Enumeration Members | ||
|
||
- [KeepExisting](../../devkit/documents/OverwriteStrategy#keepexisting) | ||
- [Overwrite](../../devkit/documents/OverwriteStrategy#overwrite) | ||
- [ThrowIfExisting](../../devkit/documents/OverwriteStrategy#throwifexisting) | ||
|
||
## Enumeration Members | ||
|
||
### KeepExisting | ||
|
||
• **KeepExisting** = `"keepExisting"` | ||
|
||
--- | ||
|
||
### Overwrite | ||
|
||
• **Overwrite** = `"overwrite"` | ||
|
||
--- | ||
|
||
### ThrowIfExisting | ||
|
||
• **ThrowIfExisting** = `"throwIfExisting"` |
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
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