agent-claw: automated task changes
This commit is contained in:
5
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/.template.gitignore
generated
vendored
Normal file
5
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/.template.gitignore
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
node_modules
|
||||
|
||||
# CDK asset staging directory
|
||||
.cdk.staging
|
||||
cdk.out
|
||||
3
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/.template.npmignore
generated
vendored
Normal file
3
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/.template.npmignore
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# CDK asset staging directory
|
||||
.cdk.staging
|
||||
cdk.out
|
||||
13
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/README.template.md
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/README.template.md
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# Welcome to your CDK JavaScript project
|
||||
|
||||
You should explore the contents of this project. It demonstrates a CDK app with an instance of a stack (`%name.PascalCased%Stack`)
|
||||
which contains an Amazon SQS queue that is subscribed to an Amazon SNS topic.
|
||||
|
||||
The `cdk.json` file tells the CDK Toolkit how to execute your app. The build step is not required when using JavaScript.
|
||||
|
||||
## Useful commands
|
||||
|
||||
* `%pm-cmd% test` perform the jest unit tests
|
||||
* `cdk deploy` deploy this stack to your default AWS account/region
|
||||
* `cdk diff` compare deployed stack with current state
|
||||
* `cdk synth` emits the synthesized CloudFormation template
|
||||
6
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/bin/%name%.template.js
generated
vendored
Normal file
6
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/bin/%name%.template.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
const cdk = require('aws-cdk-lib/core');
|
||||
const { %name.PascalCased%Stack } = require('../lib/%name%-stack');
|
||||
|
||||
const app = new cdk.App();
|
||||
new %name.PascalCased%Stack(app, '%stackname%');
|
||||
15
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/cdk.template.json
generated
vendored
Normal file
15
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/cdk.template.json
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"app": "node bin/%name%.js",
|
||||
"watch": {
|
||||
"include": ["**"],
|
||||
"exclude": [
|
||||
"README.md",
|
||||
"cdk*.json",
|
||||
"jest.config.js",
|
||||
"package*.json",
|
||||
"yarn.lock",
|
||||
"node_modules",
|
||||
"test"
|
||||
]
|
||||
}
|
||||
}
|
||||
4
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/jest.config.js
generated
vendored
Normal file
4
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/jest.config.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
module.exports = {
|
||||
testEnvironment: 'node',
|
||||
setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean'],
|
||||
}
|
||||
25
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/lib/%name%-stack.template.js
generated
vendored
Normal file
25
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/lib/%name%-stack.template.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
const cdk = require('aws-cdk-lib/core');
|
||||
const sns = require('aws-cdk-lib/aws-sns');
|
||||
const subs = require('aws-cdk-lib/aws-sns-subscriptions');
|
||||
const sqs = require('aws-cdk-lib/aws-sqs');
|
||||
|
||||
class %name.PascalCased%Stack extends cdk.Stack {
|
||||
/**
|
||||
* @param {cdk.App} scope
|
||||
* @param {string} id
|
||||
* @param {cdk.StackProps=} props
|
||||
*/
|
||||
constructor(scope, id, props) {
|
||||
super(scope, id, props);
|
||||
|
||||
const queue = new sqs.Queue(this, '%name.PascalCased%Queue', {
|
||||
visibilityTimeout: cdk.Duration.seconds(300)
|
||||
});
|
||||
|
||||
const topic = new sns.Topic(this, '%name.PascalCased%Topic');
|
||||
|
||||
topic.addSubscription(new subs.SqsSubscription(queue));
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { %name.PascalCased%Stack }
|
||||
17
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/package.json
generated
vendored
Normal file
17
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/package.json
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "%name%",
|
||||
"version": "0.1.0",
|
||||
"scripts": {
|
||||
"build": "echo \"The build step is not required when using JavaScript!\" && exit 0",
|
||||
"cdk": "cdk",
|
||||
"test": "jest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"aws-cdk": "%cdk-cli-version%",
|
||||
"jest": "^30"
|
||||
},
|
||||
"dependencies": {
|
||||
"aws-cdk-lib": "%cdk-version%",
|
||||
"constructs": "%constructs-version%"
|
||||
}
|
||||
}
|
||||
16
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/test/%name%.test.template.js
generated
vendored
Normal file
16
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/test/%name%.test.template.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
const cdk = require('aws-cdk-lib/core');
|
||||
const { Match, Template } = require('aws-cdk-lib/assertions');
|
||||
const %name.PascalCased% = require('../lib/%name%-stack');
|
||||
|
||||
test('SQS Queue and SNS Topic Created', () => {
|
||||
const app = new cdk.App();
|
||||
// WHEN
|
||||
const stack = new %name.PascalCased%.%name.PascalCased%Stack(app, 'MyTestStack');
|
||||
// THEN
|
||||
const template = Template.fromStack(stack);
|
||||
template.hasResourceProperties('AWS::SQS::Queue', {
|
||||
VisibilityTimeout: 300,
|
||||
});
|
||||
|
||||
template.resourceCountIs('AWS::SNS::Topic', 1);
|
||||
});
|
||||
34
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/tsconfig.json
generated
vendored
Normal file
34
cdk/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/tsconfig.json
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es2020"
|
||||
],
|
||||
"declaration": true,
|
||||
"strict": true,
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"noImplicitThis": true,
|
||||
"alwaysStrict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": false,
|
||||
"inlineSourceMap": true,
|
||||
"inlineSources": true,
|
||||
"experimentalDecorators": true,
|
||||
"strictPropertyInitialization": false,
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"noEmit": true,
|
||||
"skipLibCheck": true,
|
||||
"typeRoots": [
|
||||
"./node_modules/@types"
|
||||
]
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"cdk.out"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user