diff --git a/.travis.yml b/.travis.yml index 77795c6a..26eaf957 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,3 +2,6 @@ language: node_js node_js: - 0.10 + - 0.12 + - 4 + - 5 diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..c0d161f7 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,21 @@ +# Change Log +All notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning](http://semver.org/). + +## [Unreleased] + +## [0.8.0] - 2016-04-18 +### Added +- CHANGELOG to ["make it easier for users and contributors to see precisely what notable changes have been made between each release"](http://keepachangelog.com/). Linked to from README +- LICENSE to be more explicit about what was defined in `package.json`. Linked to from README +- It is OK to not set default value for AWS Credentials so AWS can use Roles and internally set AWS credentials +- Added `context.json` so it can easily be overwritten +- Allow using a custom (and passed through) `event.json` file +- Added `package` command for easy zip creation and inspection +- Added `VpcConfig` support, see [this PR](https://github.com/motdotla/node-lambda/pull/64) for more information +- Updated the AWS API version used to `2015-03-31` +- Make sure we throw errors on unrecoverable failures so other programs can listen on that +- Added support for nodejs4.3 runtime ([introducted to AWS](https://aws.amazon.com/blogs/compute/node-js-4-3-2-runtime-now-available-on-lambda/) Apr 7 2016) +- Added support for `post install scripts`, this `post_install.sh` file will be triggered after `npm install --production` in case you want to run any code on your application before zipping +- Added `-x` / `--excludeGlobs` to allow custom file exclusion +- Excluding `*.swp`, `deploy.env` by default now diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..615b1172 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +Copyright (c) 2016, Scott Motte +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/lib/main.js b/lib/main.js index 3ca83666..81546f5d 100644 --- a/lib/main.js +++ b/lib/main.js @@ -32,12 +32,12 @@ Lambda.prototype.setup = function () { this._createSampleFile('.env'); this._createSampleFile('event.json'); this._createSampleFile('deploy.env'); - console.log('Setup done. Edit the .env, deploy.env, and event.json files as needed.'); + this._createSampleFile('context.json'); + console.log('Setup done. Edit the .env, deploy.env, context.json and event.json files as needed.'); }; Lambda.prototype.run = function (program) { this._createSampleFile('event.json', program.eventFile); - this._createSampleFile('context.json'); var splitHandler = program.handler.split('.'); var filename = splitHandler[0] + '.js'; var handlername = splitHandler[1]; diff --git a/package.json b/package.json index 3a76904e..303789cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-lambda", - "version": "0.7.1", + "version": "0.8.0", "description": "Command line tool for locally running and remotely deploying your node.js applications to Amazon Lambda.", "main": "lib/main.js", "directories": { @@ -28,7 +28,7 @@ ], "readmeFilename": "README.md", "author": "motdotla", - "license": "BSD", + "license": "BSD-2-Clause", "devDependencies": { "chai": "^2.0.0", "hoek": "^2.11.1", diff --git a/test/main.js b/test/main.js index e9ceec31..7d779783 100644 --- a/test/main.js +++ b/test/main.js @@ -32,7 +32,7 @@ describe('node-lambda', function () { }); it('version should be set', function () { - assert.equal(lambda.version, '0.7.1'); + assert.equal(lambda.version, '0.8.0'); }); describe('_params', function () {