agent-claw: automated task changes
This commit is contained in:
5
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/.template.gitignore
generated
vendored
Normal file
5
cdk/node_modules/aws-cdk/lib/init-templates/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/app/javascript/.template.npmignore
generated
vendored
Normal file
3
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/.template.npmignore
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# CDK asset staging directory
|
||||
.cdk.staging
|
||||
cdk.out
|
||||
12
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/README.md
generated
vendored
Normal file
12
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/README.md
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# Welcome to your CDK JavaScript project
|
||||
|
||||
This is a blank project for CDK development with JavaScript.
|
||||
|
||||
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
|
||||
* `npx cdk deploy` deploy this stack to your default AWS account/region
|
||||
* `npx cdk diff` compare deployed stack with current state
|
||||
* `npx cdk synth` emits the synthesized CloudFormation template
|
||||
21
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/bin/%name%.template.js
generated
vendored
Normal file
21
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/bin/%name%.template.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/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%', {
|
||||
/* If you don't specify 'env', this stack will be environment-agnostic.
|
||||
* Account/Region-dependent features and context lookups will not work,
|
||||
* but a single synthesized template can be deployed anywhere. */
|
||||
|
||||
/* Uncomment the next line to specialize this stack for the AWS Account
|
||||
* and Region that are implied by the current CLI configuration. */
|
||||
// env: { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION },
|
||||
|
||||
/* Uncomment the next line if you know exactly what Account and Region you
|
||||
* want to deploy the stack to. */
|
||||
// env: { account: '123456789012', region: 'us-east-1' },
|
||||
|
||||
/* For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html */
|
||||
});
|
||||
15
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/cdk.template.json
generated
vendored
Normal file
15
cdk/node_modules/aws-cdk/lib/init-templates/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/app/javascript/jest.config.js
generated
vendored
Normal file
4
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/jest.config.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
module.exports = {
|
||||
testEnvironment: 'node',
|
||||
setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean'],
|
||||
}
|
||||
23
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/lib/%name%-stack.template.js
generated
vendored
Normal file
23
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/lib/%name%-stack.template.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
const { Stack, Duration } = require('aws-cdk-lib/core');
|
||||
// const sqs = require('aws-cdk-lib/aws-sqs');
|
||||
|
||||
class %name.PascalCased%Stack extends Stack {
|
||||
/**
|
||||
*
|
||||
* @param {Construct} scope
|
||||
* @param {string} id
|
||||
* @param {StackProps=} props
|
||||
*/
|
||||
constructor(scope, id, props) {
|
||||
super(scope, id, props);
|
||||
|
||||
// The code that defines your stack goes here
|
||||
|
||||
// example resource
|
||||
// const queue = new sqs.Queue(this, '%name.PascalCased%Queue', {
|
||||
// visibilityTimeout: Duration.seconds(300)
|
||||
// });
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { %name.PascalCased%Stack }
|
||||
17
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/package.json
generated
vendored
Normal file
17
cdk/node_modules/aws-cdk/lib/init-templates/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%"
|
||||
}
|
||||
}
|
||||
17
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/test/%name%.test.template.js
generated
vendored
Normal file
17
cdk/node_modules/aws-cdk/lib/init-templates/app/javascript/test/%name%.test.template.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// const cdk = require('aws-cdk-lib/core');
|
||||
// const { Template } = require('aws-cdk-lib/assertions');
|
||||
// const %name.PascalCased% = require('../lib/%name%-stack');
|
||||
|
||||
// example test. To run these tests, uncomment this file along with the
|
||||
// example resource in lib/%name%-stack.js
|
||||
test('SQS Queue 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
|
||||
// });
|
||||
});
|
||||
Reference in New Issue
Block a user