@gridstorm/codemod 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +37 -37
- package/dist/cli.js +7 -7
- package/package.json +3 -3
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 GridStorm Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
# @gridstorm/codemod
|
|
2
|
-
|
|
3
|
-
CLI tool to automatically migrate your codebase from AG Grid to GridStorm.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install -g @gridstorm/codemod
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
# Migrate a directory
|
|
15
|
-
gridstorm-codemod ./src
|
|
16
|
-
|
|
17
|
-
# Dry run (preview changes without writing)
|
|
18
|
-
gridstorm-codemod ./src --dry-run
|
|
19
|
-
|
|
20
|
-
# Target specific file patterns
|
|
21
|
-
gridstorm-codemod ./src --include "**/*.tsx"
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## What It Transforms
|
|
25
|
-
|
|
26
|
-
- AG Grid import paths to GridStorm equivalents
|
|
27
|
-
- Component props and configuration options
|
|
28
|
-
- Column definition API differences
|
|
29
|
-
- Event handler signatures
|
|
30
|
-
|
|
31
|
-
## Documentation
|
|
32
|
-
|
|
33
|
-
[Migration Guide](https://grid-data-analytics-explorer.vercel.app//docs/migration) | [Codemod Reference](https://grid-data-analytics-explorer.vercel.app//docs/codemod)
|
|
34
|
-
|
|
35
|
-
## License
|
|
36
|
-
|
|
37
|
-
MIT
|
|
1
|
+
# @gridstorm/codemod
|
|
2
|
+
|
|
3
|
+
CLI tool to automatically migrate your codebase from AG Grid to GridStorm.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @gridstorm/codemod
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Migrate a directory
|
|
15
|
+
gridstorm-codemod ./src
|
|
16
|
+
|
|
17
|
+
# Dry run (preview changes without writing)
|
|
18
|
+
gridstorm-codemod ./src --dry-run
|
|
19
|
+
|
|
20
|
+
# Target specific file patterns
|
|
21
|
+
gridstorm-codemod ./src --include "**/*.tsx"
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## What It Transforms
|
|
25
|
+
|
|
26
|
+
- AG Grid import paths to GridStorm equivalents
|
|
27
|
+
- Component props and configuration options
|
|
28
|
+
- Column definition API differences
|
|
29
|
+
- Event handler signatures
|
|
30
|
+
|
|
31
|
+
## Documentation
|
|
32
|
+
|
|
33
|
+
[Migration Guide](https://grid-data-analytics-explorer.vercel.app//docs/migration) | [Codemod Reference](https://grid-data-analytics-explorer.vercel.app//docs/codemod)
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
MIT
|
package/dist/cli.js
CHANGED
|
@@ -118,17 +118,17 @@ var PROP_MAP = {
|
|
|
118
118
|
// 'animateRows': 'animateRows',
|
|
119
119
|
};
|
|
120
120
|
var THEME_CLASS_MAP = {
|
|
121
|
-
"ag-theme-alpine": "light",
|
|
122
|
-
"ag-theme-alpine-dark": "dark",
|
|
123
121
|
"ag-theme-alpine-auto-dark": "dark",
|
|
124
|
-
"ag-theme-
|
|
125
|
-
"ag-theme-
|
|
122
|
+
"ag-theme-alpine-dark": "dark",
|
|
123
|
+
"ag-theme-alpine": "light",
|
|
126
124
|
"ag-theme-balham-auto-dark": "dark",
|
|
127
|
-
"ag-theme-
|
|
125
|
+
"ag-theme-balham-dark": "dark",
|
|
126
|
+
"ag-theme-balham": "light",
|
|
128
127
|
"ag-theme-material-dark": "dark",
|
|
129
|
-
"ag-theme-
|
|
128
|
+
"ag-theme-material": "light",
|
|
129
|
+
"ag-theme-quartz-auto-dark": "dark",
|
|
130
130
|
"ag-theme-quartz-dark": "dark",
|
|
131
|
-
"ag-theme-quartz
|
|
131
|
+
"ag-theme-quartz": "light"
|
|
132
132
|
};
|
|
133
133
|
var MODULE_TO_PLUGIN_MAP = {
|
|
134
134
|
"ClientSideRowModelModule": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridstorm/codemod",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Codemod CLI to migrate from AG Grid to GridStorm",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"bugs": {
|
|
45
45
|
"url": "https://github.com/007krcs/grid-data/issues"
|
|
46
46
|
},
|
|
47
|
-
"homepage": "https://
|
|
47
|
+
"homepage": "https://gridstorm.tekivex.com",
|
|
48
48
|
"author": {
|
|
49
49
|
"name": "GridStorm",
|
|
50
|
-
"url": "https://
|
|
50
|
+
"url": "https://gridstorm.tekivex.com/"
|
|
51
51
|
},
|
|
52
52
|
"funding": {
|
|
53
53
|
"type": "github",
|