Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ziaenezhad/netlify-lambda-typescript-boilerplate
Netlify Lambda Typescript Boilerplate
https://github.com/ziaenezhad/netlify-lambda-typescript-boilerplate
debug lambda netlify typescript vscode
Last synced: about 1 month ago
JSON representation
Netlify Lambda Typescript Boilerplate
- Host: GitHub
- URL: https://github.com/ziaenezhad/netlify-lambda-typescript-boilerplate
- Owner: ziaenezhad
- License: apache-2.0
- Created: 2020-03-04T05:13:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-04T06:49:36.000Z (almost 5 years ago)
- Last Synced: 2023-09-15T02:28:01.303Z (over 1 year ago)
- Topics: debug, lambda, netlify, typescript, vscode
- Language: TypeScript
- Size: 177 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Netlify Lambda Typescript Boilerplate
A minimal setup to Debug TypeScript on Node in VSCode.
## Prerequisites:
- VSCode (tested with v1.25.1)
- NodeJS (tested with v0.10.9)
- NPM (tested with v6.1.0)## Features
- debugging
- build
- prettier formatting
- standard versioning## Usage
To get started first clone this repo:
```bash
git clone https://github.com/sajjad-shirazy/netlify-lambda-typescript-boilerplate
```Install node package dependencies (typescript and ts-node):
```bash
npm install
```Start up VSCode if you haven't already (tested with VSCode v1.25.1):
```bash
code .
```### Build
```bash
npm run lambda:build
```### Start
```bash
npm run lambda:serve
```### Debug
```bash
npm run lambda:serve
```and then you should start `Debug Lambda Server` from Run& Debug panel. sourcemaps doesn't work so you have to set breakpoints on `./dist` files.
### Fromatting all source codes
```bash
npm run format
```### Versioning
Updates version within `package.json` & updates change log on the root & creates a new tag in git and pushes all changes in the origin reposiotory.
Realeasing a Patch
```bash
npm run release:patch
```Realeasing a Minor
```bash
npm run release:minor
```Realeasing a Major
```bash
npm run release:major
```