forked from codebrewlab/nx-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description Support AWS CDK v2 Per https://docs.aws.amazon.com/cdk/v1/guide/home.html, the support for CDK v1 is until June 1, 2022. Best to generate CDK v2 project Example: https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html # PR Checklist - [X] Migrations have been added if necessary - [X] Unit tests have been added or updated if necessary - [X] e2e tests have been added or updated if necessary - [X] Changelog has been updated if necessary - [X] Documentation has been updated if necessary # Issue Resolves codebrewlab#7
- Loading branch information
1 parent
e68a947
commit 8f7f58d
Showing
15 changed files
with
390 additions
and
45 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,25 @@ | ||
{ | ||
"schematics": { | ||
"update-2.0.0": { | ||
"version": "2.0.0", | ||
"description": "Update libraries", | ||
"factory": "./src/migrations/update-2-0-0/update-2-0-0" | ||
}, | ||
"migrate-to-cdk-2": { | ||
"version": "2.0.0", | ||
"description": "Update AWS CDK to v2: rename '@aws-cdk/core' to 'aws-cdk-lib' and '@aws-cdk/assert' to 'aws-cdk'", | ||
"factory": "./src/migrations/update-2-0-0/migrate-to-cdk-2" | ||
} | ||
}, | ||
"packageJsonUpdates": { | ||
"2.0.0": { | ||
"version": "2.0.0", | ||
"packages": { | ||
"eslint-plugin-cdk": { | ||
"version": "^1.7.0", | ||
"alwaysAddToPackageJson": false | ||
} | ||
} | ||
} | ||
} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
packages/nx-aws-cdk/src/generators/application/files/src/main.ts__template__
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,5 @@ | ||
import * as cdk from '@aws-cdk/core'; | ||
import { App } from 'aws-cdk-lib'; | ||
import { AppStack } from './stacks/app-stack'; | ||
|
||
const app = new cdk.App(); | ||
const app = new App(); | ||
new AppStack(app, '<%= projectName %>'); |
Oops, something went wrong.