lploy

1.0.0-alpha.5 • Public • Published

lploy

NPMV NPMD

JavaScript Style Guide

Deploy your Webpack functions to AWS Lambda

Quick start

  • Install lploy as dev dependency of your project

    with yarn:

    yarn add -D lploy
    

    with npm:

    npm i --save-dev lploy
    
  • Create lploy.yaml configuration file:

    # SourceFolder: src # Custom source folder (default: src) 
    Functions:
      Name: ExampleFunction         # Function name on AWS Lambda 
        Source: 'example-function.js' # Source filename 
  • Add lploy to your scripts

    "scripts": {
      "deploy": "lploy"
    }
    
  • Required webpack.config.js options:

    output libraryTarget commonjs2

    output: {
      libraryTarget: 'commonjs2'
    }
    

    target node

    target: 'node'
    

    externals aws-sdk

    externals: {
      'aws-sdk': 'aws-sdk'
    }
    
  • Run lploy on project folder

    with yarn:

    yarn deploy
    

    with npm:

    npm run deploy
    

Readme

Keywords

none

Package Sidebar

Install

npm i lploy

Weekly Downloads

9

Version

1.0.0-alpha.5

License

MIT

Unpacked Size

7.28 kB

Total Files

6

Last publish

Collaborators

  • alessiodionisi