Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

 🤖 Plandex  📝 Set up AWS CDK project in TypeScript

Dane Schneiderd6f94986f93b
diff --git a/lib/main.ts b/lib/main.ts
new file mode 100644
index 00000000..dc7c9434
--- /dev/null
+++ b/lib/main.ts
@@ -0,0 +1,12 @@
+import * as cdk from '@aws-cdk/core';
+
+class MyCdkStack extends cdk.Stack {
+ constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
+ super(scope, id, props);
+
+ // Define your resources here
+ }
+}
+
+const app = new cdk.App();
+new MyCdkStack(app, 'MyCdkStack');
diff --git a/package.json b/package.json
new file mode 100644
index 00000000..d4dfade7
--- /dev/null
+++ b/package.json
@@ -0,0 +1,22 @@
+{
+ "name": "cdk-project",
+ "version": "1.0.0",
+ "scripts": {
+ "build": "tsc",
+ "watch": "tsc -w",
+ "test": "jest",
+ "cdk": "cdk"
+ },
+ "devDependencies": {
+ "@aws-cdk/assert": "^1.124.0",
+ "@types/jest": "^26.0.23",
+ "@types/node": "^14.14.41",
+ "aws-cdk": "^1.124.0",
+ "jest": "^26.6.3",
+ "ts-jest": "^26.5.6",
+ "typescript": "^4.2.4"
+ },
+ "dependencies": {
+ "@aws-cdk/core": "^1.124.0"
+ }
+}
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 00000000..435dc4f0
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,15 @@
+{
+ "compilerOptions": {
+ "target": "ES2018",
+ "module": "commonjs",
+ "lib": ["es2018"],
+ "declaration": true,
+ "strict": true,
+ "noImplicitAny": true,
+
+ "experimentalDecorators": true,
+ "strictPropertyInitialization": false
+ },
+ "exclude": ["cdk.out"],
+ "include": ["bin/**/*.ts", "lib/**/*.ts"]
+}