Skip to content

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

Notifications You must be signed in to change notification settings

hieuunguyeen/serverless-plugin-local-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
      "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
          ]
        }
      }

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages