gulp-s3-upload
Advanced tools
Comparing version 1.5.0 to 1.5.1
# Changelog | ||
## Verision 1.5.0 | ||
## Version 1.5.1 | ||
* Merge bug fix [pull request #31](https://github.com/clineamb/gulp-s3-upload/pull/31) to fix the hash-comparison (calling the `noChange` callback on upon equal hash comparison) | ||
* Update docs (typos, clairty) | ||
* Update `aws-sdk` module (2.2.15 -> 2.2.18). | ||
## Version 1.5.0 | ||
* **NEW** -- Added post-upload callback options, by [benib](http://github.com/benib) in [pull request #30](http://github.com/clineamb/gulp-s3-upload/pull/30) | ||
@@ -5,0 +11,0 @@ * Upgrade `aws-sdk` node module (2.2.11 -> 2.2.15) |
10
index.js
@@ -153,2 +153,7 @@ var es = require('event-stream') | ||
gutil.log(gutil.colors.gray("No Change ..... "), keyname); | ||
if (options.onNoChange && typeof options.onNoChange === 'function') { | ||
options.onNoChange.call(this, keyname); | ||
} | ||
callback(null); | ||
@@ -211,10 +216,14 @@ | ||
gutil.log(gutil.colors.yellow("Updated ....... "), keyname); | ||
if (options.onChange && typeof options.onChange === 'function') { | ||
options.onChange.call(this, keyname); | ||
} | ||
} else { | ||
gutil.log(gutil.colors.gray("No Change ..... "), keyname); | ||
if (options.onNoChange && typeof options.onNoChange === 'function') { | ||
options.onNoChange.call(this, keyname); | ||
} | ||
} | ||
@@ -224,2 +233,3 @@ } else { | ||
gutil.log(gutil.colors.green("Uploaded! ..... "), keyname); | ||
if (options.onNew && typeof options.onNew === 'function') { | ||
@@ -226,0 +236,0 @@ options.onNew.call(this, keyname); |
{ | ||
"name": "gulp-s3-upload", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "A gulp task to asynchronous upload/update assets to an AWS S3 Bucket.", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"aws-sdk": "2.2.15", | ||
"aws-sdk": "2.2.18", | ||
"event-stream": "^3.3.2", | ||
@@ -32,0 +32,0 @@ "gulp-util": "^3.0.7", |
# gulp-s3-upload | ||
__Version 1.5.0__ | ||
__Version 1.5.1__ | ||
@@ -53,10 +53,13 @@ Use for uploading assets to Amazon S3 servers. | ||
**Per AWS best practices**, the recommended approach for loading credentials is to use the shared credentials file (`~/.aws/credentials`). You can also set the `aws_access_key_id` and `aws_secret_access_key` environment variables or specify values directly in the gulpfile via the `accessKeyId` and `secretAccessKey` options. If you have multiple profiles configured in your AWS credentials file, you can specify the profile name inline with the call to gulp. | ||
**Per AWS best practices**, the recommended approach for loading credentials is to use the shared credentials file (`~/.aws/credentials`). You can also set the `aws_access_key_id` and `aws_secret_access_key` environment variables or specify values directly in the gulpfile via the `accessKeyId` and `secretAccessKey` options. If you have multiple profiles configured in your AWS credentials file, you can specify the profile name inline with the call to gulp: | ||
If you are using **IAM** settings, just pass the noted config above in order to default to using IAM. More information on using [IAM settings here](https://aws.amazon.com/documentation/iam/). | ||
```sh | ||
AWS_PROFILE=myprofile gulp | ||
AWS_PROFILE=myprofile gulp upload | ||
``` | ||
If you are using **IAM** settings, just pass the noted config (`{useIAM:true}`) in order to default to using IAM. More information on using [IAM settings here](https://aws.amazon.com/documentation/iam/). | ||
You can also use a node_module like [config](https://www.npmjs.com/package/config) (+ [js-yaml](https://www.npmjs.com/package/js-yaml)) to load config files in your `gulpfile.js`. You can also use `fs.readFileSync` to read from a local file to load your config. | ||
@@ -63,0 +66,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32637
256
391
+ Addedaws-sdk@2.2.18(transitive)
- Removedaws-sdk@2.2.15(transitive)
Updatedaws-sdk@2.2.18