@mietz-gmbh/lambda-build-js
v1.0.6
Published
NPM package to build node.js AWS lambda functions.
Downloads
8
Readme
lambda-build-js
NPM package to build node.js AWS lambda functions.
Get Started
Install
yarn install @mietz-gmbh/lambda-build-js
Build Lambda
yarn build-lambda [function_name] [--logging] [--watch] [--loggingLevel=[debug|info|warn|error]]
| flag |default| description |
|------------------|---|-------------------------------------------------------------------------------------------------------------------------------------|
| --logging
|false
| enable logging |
| --watch
|false
| enable watch mode |
| --loggingLevel
|debug
| sets the logging levelyou must enable logging for this option to work!valid values are: debug
info
warn
error
|
| --minimizeOff
| false
| disable minimization of the output bundle |
Configuration
Create a file called lambda-build.config.js
with a default export (module.exports
).
You can specify webpacks alias
and externals
.
module.exports = {
alias: {
pg: 'pg.js'
},
externals: [
'aws-sdk',
]
}