agent-claw: automated task changes
This commit is contained in:
4
cdk/node_modules/aws-cdk/lib/init-templates/lib/info.json
generated
vendored
Normal file
4
cdk/node_modules/aws-cdk/lib/init-templates/lib/info.json
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"description": "Template for a CDK Construct Library",
|
||||
"aliases": "library"
|
||||
}
|
||||
8
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/.template.gitignore
generated
vendored
Normal file
8
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/.template.gitignore
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
*.js
|
||||
!jest.config.js
|
||||
*.d.ts
|
||||
node_modules
|
||||
|
||||
# CDK asset staging directory
|
||||
.cdk.staging
|
||||
cdk.out
|
||||
6
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/.template.npmignore
generated
vendored
Normal file
6
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/.template.npmignore
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
*.ts
|
||||
!*.d.ts
|
||||
|
||||
# CDK asset staging directory
|
||||
.cdk.staging
|
||||
cdk.out
|
||||
12
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/README.template.md
generated
vendored
Normal file
12
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/README.template.md
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# Welcome to your CDK TypeScript Construct Library project
|
||||
|
||||
You should explore the contents of this project. It demonstrates a CDK Construct Library that includes a construct (`%name.PascalCased%`)
|
||||
which contains an Amazon SQS queue that is subscribed to an Amazon SNS topic.
|
||||
|
||||
The construct defines an interface (`%name.PascalCased%Props`) to configure the visibility timeout of the queue.
|
||||
|
||||
## Useful commands
|
||||
|
||||
* `%pm-cmd% build` compile typescript to js
|
||||
* `%pm-cmd% watch` watch for changes and compile
|
||||
* `%pm-cmd% test` perform the jest unit tests
|
||||
9
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/jest.config.js
generated
vendored
Normal file
9
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/jest.config.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
module.exports = {
|
||||
testEnvironment: 'node',
|
||||
roots: ['<rootDir>/test'],
|
||||
testMatch: ['**/*.test.ts'],
|
||||
transform: {
|
||||
'^.+\\.tsx?$': 'ts-jest'
|
||||
},
|
||||
setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean'],
|
||||
};
|
||||
21
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/lib/index.template.ts
generated
vendored
Normal file
21
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/lib/index.template.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// import * as cdk from 'aws-cdk-lib';
|
||||
import { Construct } from 'constructs';
|
||||
// import * as sqs from 'aws-cdk-lib/aws-sqs';
|
||||
|
||||
export interface %name.PascalCased%Props {
|
||||
// Define construct properties here
|
||||
}
|
||||
|
||||
export class %name.PascalCased% extends Construct {
|
||||
|
||||
constructor(scope: Construct, id: string, props: %name.PascalCased%Props = {}) {
|
||||
super(scope, id);
|
||||
|
||||
// Define construct contents here
|
||||
|
||||
// example resource
|
||||
// const queue = new sqs.Queue(this, '%name.PascalCased%Queue', {
|
||||
// visibilityTimeout: cdk.Duration.seconds(300)
|
||||
// });
|
||||
}
|
||||
}
|
||||
24
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/package.json
generated
vendored
Normal file
24
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/package.json
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "%name%",
|
||||
"version": "0.1.0",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"watch": "tsc -w",
|
||||
"test": "jest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^30",
|
||||
"@types/node": "^20.19.24",
|
||||
"aws-cdk-lib": "%cdk-version%",
|
||||
"constructs": "%constructs-version%",
|
||||
"jest": "^30",
|
||||
"ts-jest": "^29",
|
||||
"typescript": "~5.9.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"aws-cdk-lib": "%cdk-version%",
|
||||
"constructs": "%constructs-version%"
|
||||
}
|
||||
}
|
||||
18
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/test/%name%.test.template.ts
generated
vendored
Normal file
18
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/test/%name%.test.template.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// import * as cdk from 'aws-cdk-lib/core';
|
||||
// import { Template } from 'aws-cdk-lib/assertions';
|
||||
// import * as %name.PascalCased% from '../lib/index';
|
||||
|
||||
// example test. To run these tests, uncomment this file along with the
|
||||
// example resource in lib/index.ts
|
||||
test('SQS Queue Created', () => {
|
||||
// const app = new cdk.App();
|
||||
// const stack = new cdk.Stack(app, "TestStack");
|
||||
// // WHEN
|
||||
// new %name.PascalCased%.%name.PascalCased%(stack, 'MyTestConstruct');
|
||||
// // THEN
|
||||
// const template = Template.fromStack(stack);
|
||||
|
||||
// template.hasResourceProperties('AWS::SQS::Queue', {
|
||||
// VisibilityTimeout: 300
|
||||
// });
|
||||
});
|
||||
32
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/tsconfig.json
generated
vendored
Normal file
32
cdk/node_modules/aws-cdk/lib/init-templates/lib/typescript/tsconfig.json
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"lib": [
|
||||
"es2022"
|
||||
],
|
||||
"declaration": true,
|
||||
"strict": true,
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"noImplicitThis": true,
|
||||
"alwaysStrict": true,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": false,
|
||||
"inlineSourceMap": true,
|
||||
"inlineSources": true,
|
||||
"experimentalDecorators": true,
|
||||
"strictPropertyInitialization": false,
|
||||
"skipLibCheck": true,
|
||||
"typeRoots": [
|
||||
"./node_modules/@types"
|
||||
]
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"cdk.out"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user