lambdakit-ts
Installation
SKILL.md
LambdaKit TS
Bootstrap a new TypeScript AWS Lambda using the instructions below.
If the desired event source is not specified, create a Lambda with API Gateway as the event source.
Start with:
- If a name is not specified, generate an interactive prompt and ask the user what
what should the lambda be called?, and pre-populate it with the name of the current directory in kebab-case. - Before proceeding further, present the user with an interactive prompt:
The Lambda will be created at ${path}. Please confirmThen give the user 2 options:- Yes — proceed with creating the Lambda at this path
- Enter a directory name — a new subdirectory with this name will be created in the current directory If a new directory name is entered, use this value in kebab-case, and create the lambda in the new directory.
- create package.json with
npm init -y - install dev dependencies
npm install -D @types/aws-lambda @types/node esbuild typescript prettier eslint eslint-plugin-prettier eslint-plugin-check-file eslint-config-prettier @typescript-eslint/parser @typescript-eslint/eslint-plugin - install runtime dependencies
npm install @aws-lambda-powertools/logger @middy/core - run
mkdir -p src/functions src/interfacesto create the directories - copy the provided
assets/tsconfig.jsonfile
Related skills