UNPKG

@amazon-codecatalyst/blueprints.sam-serverless-application

Version:

This blueprint creates a project that leverages a serverless application model (SAM) to quickly create and deploy an API. You can choose Java, TypeScript, or Python as the programming language

68 lines (67 loc) 2.06 kB
{ "version": "2.0.0", "tasks": [ { "label": "mvn: debug tests", "detail": "mvn debug tests", "type": "shell", "command": "mvnDebug -DforkMode=never test", "group": "build", "isBackground": true, "problemMatcher": { "pattern": { "regexp": "." }, "background": { "activeOnStart": true, "beginsPattern": ".", "endsPattern": "Listening for transport dt_socket at address" } }, "options": { "cwd": "${workspaceFolder}/{{lambdaFunctionName}}/HelloWorldFunction" } }, { "label": "mvn: test", "detail": "mvn test", "type": "shell", "command": "mvn test", "group": "test", "options": { "cwd": "${workspaceFolder}/{{lambdaFunctionName}}/HelloWorldFunction" } }, { "type": "shell", "command": "sam build", "label": "sam: build", "detail": "sam build", "problemMatcher": [] }, { "type": "shell", "command": "sam local invoke {{lambdaFunctionName}}Function --event {{lambdaFunctionName}}/events/event.json", "label": "sam: invoke", "detail": "sam invoke", "problemMatcher": [] }, { "type": "shell", "command": "sam local start-api", "label": "sam: start api", "detail": "sam start api", "isBackground": true, "problemMatcher": { "pattern": { "regexp": "." }, "background": { "activeOnStart": true, "beginsPattern": ".", "endsPattern": "Running on" } } } ] }