Skip to content

Commit

Permalink
Alias grunt-lib-contrib minMaxInfo method
Browse files Browse the repository at this point in the history
  • Loading branch information
shama committed Jan 10, 2013
1 parent 9d1bd4f commit 303898d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 2 additions & 6 deletions lib/legacyhelpers.js
Expand Up @@ -9,7 +9,7 @@
exports.init = function(grunt) {
'use strict';

var gzip = require('gzip-js');
var helper = require('grunt-lib-contrib').init(grunt);

var exports = {};

Expand All @@ -29,11 +29,7 @@ exports.init = function(grunt) {
};

// Output some size info about a file.
exports.min_max_info = function(min, max) {
var gzipSize = String(exports.gzip(min).length);
grunt.log.writeln('Uncompressed size: ' + String(max.length).green + ' bytes.');
grunt.log.writeln('Compressed size: ' + gzipSize.green + ' bytes gzipped (' + String(min.length).green + ' bytes minified).');
};
exports.min_max_info = helper.minMaxInfo;

return exports;
};
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -25,10 +25,10 @@
},
"main": "lib/legacyhelpers.js",
"dependencies": {
"gzip-js": "~0.3.1"
"grunt-lib-contrib": "~0.5.1"
},
"devDependencies": {
"grunt-contrib-jshint": "0.1.0",
"grunt": "~0.4.0a"
"grunt-contrib-jshint": "0.1.1rc5",
"grunt": "~0.4.0rc5"
}
}
}

0 comments on commit 303898d

Please sign in to comment.