From a64710cf70878cf4eebf12117428031a54f91552 Mon Sep 17 00:00:00 2001 From: Chase Date: Thu, 12 May 2016 12:13:34 +0200 Subject: [PATCH] Fixes #96 (#104) * Fixes #96 * Update readme * Bump 0.8.3 --- CHANGELOG.md | 4 ++++ README.md | 4 +++- bin/node-lambda | 2 ++ package.json | 2 +- test/main.js | 2 +- 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba9db17f..3732de32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,3 +33,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Fix `AWS_PUBLIS` typo [#102](https://github.com/motdotla/node-lambda/pull/102) ### Added - Allow checking on `process.env.environment` to context switch [#95](https://github.com/motdotla/node-lambda/pull/95) + +## [0.8.3] - 2016-05-12 +### Bugfixes +- Added `EXCLUDE_GLOBS` to `package`, so your local ZIPs are the same as the ZIPs uploaded to AWS Lambda [#104](https://github.com/motdotla/node-lambda/pull/104) diff --git a/README.md b/README.md index 58d1f685..297d66cc 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ $ node-lambda package --help -n, --functionName [node-lambda] Lambda FunctionName -e, --environment [staging] Choose environment {development, staging, production} -f, --configFile [] Path to file holding secret environment variables (e.g. "deploy.env") + -x, --excludeGlobs [] Add a comma separated list of file(type)s to ignore (e.g. "*.json") ``` #### deploy @@ -116,9 +117,10 @@ $ node-lambda deploy --help -u, --runtime [nodejs4.3] Lambda Runtime {nodejs4.3, nodejs} - "nodejs4.3" is the current standard, "nodejs" is v0.10.36 -p, --publish [false] This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation -v, --version [custom-version] Lambda Version - -f, --configFile [] Path to file holding secret environment variables (e.g. "deploy.env")` + -f, --configFile [] Path to file holding secret environment variables (e.g. "deploy.env") -b, --vpcSubnets [] VPC Subnet ID(s, comma separated list) for your Lambda Function, when using this, the below param is also required -g, --vpcSecurityGroups [] VPC Security Group ID(s, comma separated list) for your Lambda Function, when using this, the above param is also required + -x, --excludeGlobs [] Add a comma separated list of file(type)s to ignore (e.g. "*.json") ``` ## Custom Environment Variables diff --git a/bin/node-lambda b/bin/node-lambda index 70d43acf..a45fcdc5 100755 --- a/bin/node-lambda +++ b/bin/node-lambda @@ -69,6 +69,8 @@ program .option('--handler [' + AWS_HANDLER + ']', 'Lambda Handler {index.handler}', AWS_HANDLER) .option('-e, --environment [' + AWS_ENVIRONMENT + ']', 'Choose environment {dev, staging, production}', AWS_ENVIRONMENT) + .option('-x, --excludeGlobs [' + EXCLUDE_GLOBS + ']', + 'Space-separated glob pattern(s) for additional exclude files (e.g. "event.json dotenv.sample")', EXCLUDE_GLOBS) .option('-f, --configFile [' + CONFIG_FILE + ']', 'Path to file holding secret environment variables (e.g. "deploy.env")', CONFIG_FILE) .action(function (prg) { diff --git a/package.json b/package.json index af0a37be..e8c82ae0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-lambda", - "version": "0.8.2", + "version": "0.8.3", "description": "Command line tool for locally running and remotely deploying your node.js applications to Amazon Lambda.", "main": "lib/main.js", "directories": { diff --git a/test/main.js b/test/main.js index e1348017..74c65fbe 100644 --- a/test/main.js +++ b/test/main.js @@ -34,7 +34,7 @@ describe('node-lambda', function () { }); it('version should be set', function () { - assert.equal(lambda.version, '0.8.2'); + assert.equal(lambda.version, '0.8.3'); }); describe('_params', function () {