Skip to content
/ lambda-typescript Public template

A template repository for lambda functions written in typescript

License

Notifications You must be signed in to change notification settings

previewme/lambda-typescript

Repository files navigation

typescript-lambda

CI Workflow Coverage Vulnerabilities Quality Gate Status

This is a template repository for creating typescript lambda projects.

After cloning this template, the following steps need to be carried out:

  1. Add the project to sonarcloud.
  2. The following files need to be modified to suit your project.
  3. Update the sonarcloud badges

package.json

  • name
  • version
  • repository
  • description
  • license

sonar-project.properties

  • sonar.projectKey
  • sonar.links.homepage
  • sonar.links.ci
  • sonar.links.scm
  • sonar.links.issue

Build

To build the lambda function run the following.

npm install
npm run build

Test

To run the tests.

npm test

Package

The following will package the lambda function into a zip bundle to allow manual deployment.

zip -q -r dist/lambda.zip node_modules dist