An open API service indexing awesome lists of open source software.

https://github.com/hieuunguyeen/serverless-plugin-local-runtime

[sls@0.5x] Add supports for local Node runtime with Serverless 0.5
https://github.com/hieuunguyeen/serverless-plugin-local-runtime

lambda serverless

Last synced: 9 months ago
JSON representation

[sls@0.5x] Add supports for local Node runtime with Serverless 0.5

Awesome Lists containing this project

README

          

# Serverless local runtime plugin

**Require Serverless^0.5**

Add supports for local Node runtime with Serverless 0.5

## Supports:
- Run local lambda on a child_process when call `sls function run`. In the child process, function are evaluated with flags given to `s-project.json`

## Usage:
- Turn runtime setting in `s-function.json` to `local-node`
- In `s-project.json`, add to custom field as following
```javascript
"custom": {
"local-node": { // support only local-node
"deploymentVersion": 'nodejs6.10', // enum ['nodejs6.10', 'nodejs4.3'], defaults to 'nodejs4.3'
"flags": [
--harmony
--harmony-async-await
// Your flags here
]
}
}
```