Skip to content

Commit ea6c2e8

Browse files
committed
Update to use new verbose option for logging
1 parent 7b17685 commit ea6c2e8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = {
3434
configure: function(context) {
3535
this._super.configure.call(this, context);
3636
if (this.readConfig('zopfli')) {
37-
this.log("Using zopfli for compression")
37+
this.log("Using zopfli for compression", { verbose: true });
3838
this.gzipLibrary = this.project.require('node-zopfli');
3939
} else {
4040
this.gzipLibrary = require('zlib');
@@ -49,10 +49,10 @@ module.exports = {
4949
var distFiles = this.readConfig('distFiles') || [];
5050
var keep = this.readConfig('keep');
5151

52-
this.log('gzipping `' + filePattern + '`');
52+
this.log('gzipping `' + filePattern + '`', { verbose: true });
5353
return this._gzipFiles(distDir, distFiles, filePattern, keep)
5454
.then(function(gzippedFiles) {
55-
self.log('gzipped ' + gzippedFiles.length + ' files ok');
55+
self.log('gzipped ' + gzippedFiles.length + ' files ok', { verbose: true });
5656
return { gzippedFiles: gzippedFiles };
5757
})
5858
.catch(this._errorMessage.bind(this));
@@ -89,7 +89,7 @@ module.exports = {
8989
return filePath + '.gz';
9090
}
9191
}).then(function(outFilePath){
92-
self.log('✔ ' + outFilePath);
92+
self.log('✔ ' + outFilePath, { verbose: true });
9393

9494
return outFilePath;
9595
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"dependencies": {
4646
"chalk": "^1.0.0",
4747
"core-object": "^1.1.0",
48-
"ember-cli-deploy-plugin": "0.1.3",
48+
"ember-cli-deploy-plugin": "0.2.0",
4949
"ember-cli-babel": "^5.0.0",
5050
"minimatch": "^2.0.8",
5151
"redis": "^0.12.1",

tests/unit/index-nodetest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ describe('gzip plugin', function() {
1212
beforeEach(function() {
1313
subject = require('../../index');
1414
mockUi = {
15+
verbose: true,
1516
messages: [],
1617
write: function() { },
1718
writeLine: function(message) {

0 commit comments

Comments
 (0)