Skip to content

Instantly share code, notes, and snippets.

@maatthc
Last active October 1, 2020 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maatthc/3d1edac5b71ee088310d22d26538c99d to your computer and use it in GitHub Desktop.
Save maatthc/3d1edac5b71ee088310d22d26538c99d to your computer and use it in GitHub Desktop.
Configuration files for Debugging TypeScript Serverless application using Visual Studio Code
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch order-dynamics-fetch-shipment",
"program": "${workspaceFolder}/node_modules/.bin/sls",
"preLaunchTask": "Build order-dynamics-fetch-shipment",
"args": ["invoke","local","-c","workers/order-dynamics-fetch-shipment/serverless.yml","-f","order-dynamics-fetch-shipment","--app","order-dynamics-fetch-shipment",
"--path", "workers/order-dynamics-fetch-shipment/test/fixtures/cloudwatch-lambda-event.json"],
"sourceMaps": true,
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
"!**/node_modules/**"
]
}
]
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build order-dynamics-fetch-shipment",
"type": "shell",
"command": "yarn build order-dynamics-fetch-shipment --tsc",
"windows": {
"command": "yarn build order-dynamics-fetch-shipment --tsc"
},
"group": "build",
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}
{
"compilerOptions": {
"lib": ["ES2019"],
"module": "commonjs",
"moduleResolution": "Node",
"target": "ES2019",
"declaration": false,
"sourceMap": true,
"outDir": "../../dist"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "test", "**/*spec.ts"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment