A minimal template for an ES2015+ Node.js app running on AWS Lambda (w/ babel and webpack).
latest
preset by default instead of only es2015
.prepackage
script to build index.js
before creating the zip file.webpack.config.js
— babel-loader
is now just babel
and var
is now const
. This was totally unnecessary, but it bugged me.npm run package
instead of npm run lambda -- package
. Development files (like .nvmrc
and webpack.config.js
are excluded from the deployable package with --excludeGlobs
, but node-lambda
doesn't seem to always exclude all the files listed.npm run setup
was also added (though this shouldn't ever be needed as npm install
does this with the postinstall
script.