ember-cli-deploy-gzip
Advanced tools
Comparing version 0.2.4 to 1.0.0-beta.0
@@ -1,6 +0,15 @@ | ||
# Changelog | ||
# Change Log | ||
## [0.2.4](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/0.2.4) (2016-11-19) | ||
[Full Changelog](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/compare/v0.2.3...0.2.4) | ||
## [v1.0.0-beta.0](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/v1.0.0-beta.0) (2017-03-25) | ||
[Full Changelog](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/compare/v0.2.4...v1.0.0-beta.0) | ||
**Merged pull requests:** | ||
- Update ember-cli and dependencies [\#25](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/25) ([lukemelia](https://github.com/lukemelia)) | ||
## [v0.2.4](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/v0.2.4) (2016-11-19) | ||
[Full Changelog](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/compare/v0.2.3...v0.2.4) | ||
**Merged pull requests:** | ||
- Update various dependencies and remove unused code. [\#24](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/24) ([lukemelia](https://github.com/lukemelia)) | ||
@@ -10,23 +19,26 @@ - \[security\] Update minimatch to ^3.0.2 [\#22](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/22) ([knownasilya](https://github.com/knownasilya)) | ||
## [0.2.3](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/0.2.3) (2016-04-01) | ||
[Full Changelog](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/compare/v0.2.2...0.2.3) | ||
## [v0.2.3](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/v0.2.3) (2016-04-01) | ||
[Full Changelog](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/compare/v0.2.2...v0.2.3) | ||
- Remove unused redis dependency [\#20](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/20) ([dannyfallon](https://github.com/dannyfallon)) | ||
**Merged pull requests:** | ||
## [0.2.2](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/v0.2.2) (2016-02-26) | ||
- Remove redis dependency [\#20](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/20) ([dannyfallon](https://github.com/dannyfallon)) | ||
## [v0.2.2](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/v0.2.2) (2016-02-26) | ||
[Full Changelog](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/compare/v0.2.1...v0.2.2) | ||
- Add ignorePattern option for removing specific files [#18](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/18) ([@jrjohnson](https://github.com/jrjohnson)) | ||
- Fix the plugin return object for keep-enabled gzipping [#19](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/19) ([@dannyfallon/df](https://github.com/dannyfallon/df)) | ||
**Merged pull requests:** | ||
## [0.2.1](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/v0.2.1) (2016-02-06) | ||
- Fix the plugin return object for keep-enabled gzipping [\#19](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/19) ([dannyfallon](https://github.com/dannyfallon)) | ||
- Add ignorePattern option for removing specific files [\#18](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/18) ([jrjohnson](https://github.com/jrjohnson)) | ||
## [v0.2.1](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/v0.2.1) (2016-02-06) | ||
[Full Changelog](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/compare/v0.2.0...v0.2.1) | ||
- Update ember-deploy-plugin version again | ||
## [0.2.0](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/v0.2.0) (2016-02-06) | ||
## [v0.2.0](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/v0.2.0) (2016-02-06) | ||
[Full Changelog](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/compare/v0.1.1...v0.2.0) | ||
**Merged pull requests:** | ||
- Add the gzipped file to the context's distFiles when keep is true [\#17](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/17) ([dannyfallon](https://github.com/dannyfallon)) | ||
- Update ember-deploy-plugin version | ||
@@ -36,2 +48,4 @@ ## [v0.1.1](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/v0.1.1) (2015-12-31) | ||
**Merged pull requests:** | ||
- Fix \#14: only compress uncompressed files [\#15](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/15) ([buschtoens](https://github.com/buschtoens)) | ||
@@ -42,2 +56,4 @@ | ||
**Merged pull requests:** | ||
- Update to use new verbose option for logging [\#13](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/13) ([lukemelia](https://github.com/lukemelia)) | ||
@@ -48,2 +64,4 @@ | ||
**Merged pull requests:** | ||
- Add keep option with tests [\#12](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/12) ([dschmidt](https://github.com/dschmidt)) | ||
@@ -56,2 +74,3 @@ - Revert "Add keep option" pending a fresh PR with tests [\#10](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/10) ([lukemelia](https://github.com/lukemelia)) | ||
## [v0.1.0-beta.1](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/tree/v0.1.0-beta.1) (2015-08-08) | ||
**Merged pull requests:** | ||
@@ -64,1 +83,5 @@ - Update README for 0.5.0 [\#6](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/6) ([achambers](https://github.com/achambers)) | ||
- Fix issue where plugin can resolve its promise before the gzip stream is done writing [\#1](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip/pull/1) ([lukemelia](https://github.com/lukemelia)) | ||
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* |
12
index.js
@@ -1,5 +0,5 @@ | ||
/* jshint node: true */ | ||
/*eslint-env node*/ | ||
'use strict'; | ||
var Promise = require('ember-cli/lib/ext/promise'); | ||
var RSVP = require('rsvp'); | ||
var fs = require('fs'); | ||
@@ -45,3 +45,3 @@ var path = require('path'); | ||
willUpload: function(context) { | ||
willUpload: function(/* context */) { | ||
var self = this; | ||
@@ -78,3 +78,3 @@ | ||
} | ||
return Promise.map(filesToGzip, this._gzipFile.bind(this, distDir, keep)); | ||
return RSVP.map(filesToGzip, this._gzipFile.bind(this, distDir, keep)); | ||
}, | ||
@@ -85,3 +85,3 @@ _gzipFile: function(distDir, keep, filePath) { | ||
var outFilePath = fullPath + '.gz'; | ||
return new Promise(function(resolve, reject) { | ||
return new RSVP.Promise(function(resolve, reject) { | ||
var gzip = self.gzipLibrary.createGzip({ format: 'gzip' }); | ||
@@ -117,3 +117,3 @@ var inp = fs.createReadStream(fullPath); | ||
this.log(error, { color: 'red' }); | ||
return Promise.reject(error); | ||
return RSVP.reject(error); | ||
} | ||
@@ -120,0 +120,0 @@ }); |
{ | ||
"name": "ember-cli-deploy-gzip", | ||
"version": "0.2.4", | ||
"version": "1.0.0-beta.0", | ||
"description": "Ember CLI Deploy plugin to gzip files.", | ||
@@ -12,3 +12,3 @@ "directories": { | ||
"build": "ember build", | ||
"test": "node tests/runner.js" | ||
"test": "node tests/runner.js && ./node_modules/.bin/eslint index.js tests/**/*.js" | ||
}, | ||
@@ -22,10 +22,10 @@ "repository": "https://github.com/ember-cli-deploy/ember-cli-deploy-gzip", | ||
"devDependencies": { | ||
"broccoli-asset-rev": "^2.0.2", | ||
"chai": "^3.5.0", | ||
"chai-as-promised": "^5.3.0", | ||
"ember-cli": "2.9.1", | ||
"ember-cli-release": "1.0.0-beta.2", | ||
"github": "^2.5.1", | ||
"chai-as-promised": "^6.0.0", | ||
"ember-cli": "^2.12.0", | ||
"ember-cli-release": "^1.0.0-beta.2", | ||
"eslint": "^3.18.0", | ||
"github": "^9.2.0", | ||
"glob": "^7.0.5", | ||
"mocha": "^3.0.2", | ||
"mocha": "^3.2.0", | ||
"multiline": "^1.0.2", | ||
@@ -43,3 +43,3 @@ "rimraf": "^2.3.4" | ||
"minimatch": "^3.0.3", | ||
"rsvp": "^3.2.1" | ||
"rsvp": "^3.5.0" | ||
}, | ||
@@ -46,0 +46,0 @@ "ember-addon": { |
@@ -106,6 +106,10 @@ # ember-cli-deploy-gzip | ||
- `npm test` | ||
* `yarn test` | ||
## Why `ember build` and `ember test` don't work | ||
Since this is a node-only ember-cli addon, this package does not include many files and dependencies which are part of ember-cli's typical `ember build` and `ember test` processes. | ||
[1]: http://ember-cli-deploy.github.io/ember-cli-deploy/plugins/ "Plugin Documentation" | ||
[2]: https://github.com/zapnito/ember-cli-deploy-build "ember-cli-deploy-build" | ||
[3]: https://github.com/zapnito/ember-cli-deploy-s3 "ember-cli-deploy-s3" |
Sorry, the diff of this file is not supported yet
196979
11
124
115
Updatedrsvp@^3.5.0