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
- Host: GitHub
- URL: https://github.com/hieuunguyeen/serverless-plugin-local-runtime
- Owner: hieuunguyeen
- Created: 2017-02-13T14:30:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T15:14:21.000Z (almost 9 years ago)
- Last Synced: 2025-07-03T03:03:22.933Z (9 months ago)
- Topics: lambda, serverless
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
]
}
}
```