Last active
February 28, 2021 09:49
-
-
Save dacci/be7262fb556174ed27dbfa87c6be015c to your computer and use it in GitHub Desktop.
TypeScript project template for AWS Lambda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| env: | |
| es2020: true | |
| jest/globals: true | |
| parser: '@typescript-eslint/parser' | |
| parserOptions: | |
| project: ./tsconfig.json | |
| plugins: | |
| - jest | |
| - '@typescript-eslint' | |
| extends: | |
| - eslint:recommended | |
| - plugin:@typescript-eslint/eslint-recommended | |
| - plugin:@typescript-eslint/recommended | |
| - plugin:jest/recommended | |
| - prettier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node_modules/ | |
| dist/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| transform: { | |
| '^.+\\.tsx?$': 'ts-jest', | |
| }, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "private": true, | |
| "scripts": { | |
| "build": "esbuild --bundle --platform=node --minify --outdir=dist --sourcemap --external:aws-sdk src/index.ts", | |
| "test": "jest --passWithNoTests" | |
| }, | |
| "dependencies": {}, | |
| "devDependencies": { | |
| "@tsconfig/node14": "^1.0.0", | |
| "@types/aws-lambda": "^8.0.0", | |
| "@types/jest": "^26.0.0", | |
| "@types/node": "^14.0.0", | |
| "@typescript-eslint/eslint-plugin": "^4.0.0", | |
| "@typescript-eslint/parser": "^4.0.0", | |
| "aws-sdk": "2.804.0", | |
| "esbuild": "0", | |
| "eslint": "^7.0.0", | |
| "eslint-config-prettier": "^8.0.0", | |
| "eslint-plugin-jest": "^24.0.0", | |
| "jest": "^26.0.0", | |
| "ts-jest": "^26.0.0", | |
| "ts-node": "^9.0.0", | |
| "typescript": "^4.0.0" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "extends": "@tsconfig/node14/tsconfig.json", | |
| "exclude": [ | |
| "node_modules" | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment