1.0.0-alpha.5 • Published 6 years ago

lploy v1.0.0-alpha.5

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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
1.0.0-alpha.5

6 years ago

1.0.0-alpha.4

6 years ago

1.0.0-alpha.3

6 years ago

1.0.0-alpha.2

6 years ago

1.0.0-alpha.1

6 years ago