-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add new codemods for ag-grid 32.2.0 * Ignore .d.ts files as they cannot be transformed * Add the ability to pass folders in the input arguments and not just files
- Loading branch information
1 parent
8ffa6eb
commit 66165fa
Showing
117 changed files
with
2,355 additions
and
249 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
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
3 changes: 1 addition & 2 deletions
3
packages/cli/src/codemods/plugins/transform-grid-api-methods/plugin.json
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"name": "Transform Grid API methods", | ||
"description": "Transform deprecated Grid API method invocations", | ||
"template": "../../../templates/plugin-transform-grid-api-methods" | ||
"description": "Transform deprecated Grid API method invocations" | ||
} |
3 changes: 1 addition & 2 deletions
3
packages/cli/src/codemods/plugins/transform-grid-options/plugin.json
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"name": "Transform Grid options", | ||
"description": "Transform deprecated Grid options", | ||
"template": "../../../templates/plugin-transform-grid-options" | ||
"description": "Transform deprecated Grid options" | ||
} |
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
27 changes: 27 additions & 0 deletions
27
packages/cli/src/codemods/transforms/transform-grid-api-methods-v32-2/README.md
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,27 @@ | ||
# `transform-grid-api-methods-v32-2` | ||
|
||
> _Transform deprecated Grid API method invocations_ | ||
See the [`transform-grid-api-methods`](../../plugins/transform-grid-api-methods/) plugin for usage instructions. | ||
|
||
## Common tasks | ||
|
||
### Add a test case | ||
|
||
Create a new unit test scenario for this transform: | ||
|
||
``` | ||
pnpm run task:create-test --type transform --target transform-grid-api-methods-v32-2 | ||
``` | ||
|
||
### Add a new rule | ||
|
||
Replacement rules are specified in [`replacements.ts`](./replacements.ts) | ||
|
||
### Add to a codemod release | ||
|
||
Add this source code transformation to a codemod release: | ||
|
||
``` | ||
pnpm run task:include-transform --transform transform-grid-api-methods-v32-2 | ||
``` |
Oops, something went wrong.