Commit d9ef109
authored
feat: cumulative codegen structure (#14296)
* feat: add codegen auth v1
* chore: add a new tsconfig file for codegen tool
* chore: added codegen tsconfig reference in base tsconfig
* chore: add build artifacts
* feat: add comprehensive codegen tool for amplify gen 1 to gen 2 migration
- add auth generator file to generate typescript asts
- add preliminary unit tests for the auth generator
- integrate the rest of the old migration tool to maintain dependencies
* chore: updated dependencies
* chore: update dependencies
* fix: add proper exclusions for codegen tsconfig
* feat: configure separate TypeScript compilation for gen2-migration codegen
- Add dual build process: main project with strict:true, gen2-migration with strict:false
- Update build script to compile both tsconfigs sequentially
- Exclude gen2-migration directory from main tsconfig to prevent double compilation
- Create separate Jest config for gen2-migration tests with relaxed TypeScript settings
- Update test script to run both Jest configurations
- Add gen2-migration lib directory to .gitignore to exclude compiled artifacts
- Configure gen2-migration tsconfig with strict:false, skipLibCheck, and proper paths
This allows the gen2-migration codegen to build and test with relaxed TypeScript
settings while maintaining strict type checking for the main codebase.
* chore: change auth generator to the original tool
* chore: update jest.config.js
* chore: update jest.config.js
* feat: auth generator update v1
* chore: add separate command for running codegen tests
* fix: revert tsconfig and package.json changes and set strict:false for amplify-cli
* chore: update auth generator to original tool's code1 parent 8e9ed63 commit d9ef109
34 files changed
Lines changed: 4641 additions & 674 deletions
File tree
- packages/amplify-cli
- src/commands/gen2-migration/amplify-gen2-migration-codegen-dg
- src
- adapters
- auth
- data
- functions
- project
- storage
- backend
- cli
- core
- generators
- auth
- data
- functions
- storage
- npm_package
- renderers
- resource
- test_utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments