1.0.6 • Published 13 days ago

@mietz-gmbh/lambda-build-js v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

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]]
flagdefaultdescription
--loggingfalseenable logging
--watchfalseenable watch mode
--loggingLeveldebugsets the logging levelyou must enable logging for this option to work!valid values are: debug info warn error
--minimizeOfffalsedisable 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',
    ]
}