lploy
v1.0.0-alpha.5
Published
Deploy your Webpack functions to AWS Lambda
Downloads
4
Readme
lploy
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