No ticker: grunt_compare_size options. Close gh-1210.

This commit is contained in:
Tom Fuertes 2013-03-24 23:47:46 -05:00 committed by Richard Gibson
parent 100d3c3516
commit 1f530e2867
2 changed files with 11 additions and 1 deletions

View File

@ -7,6 +7,7 @@ module.exports = function( grunt ) {
"dist/jquery.min.map",
"dist/jquery.min.js"
],
gzip = require("gzip-js"),
readOptionalJSON = function( filepath ) {
var data = {};
try {
@ -19,7 +20,15 @@ module.exports = function( grunt ) {
pkg: grunt.file.readJSON("package.json"),
dst: readOptionalJSON("dist/.destination.json"),
compare_size: {
files: distpaths
files: [ "dist/jquery.js", "dist/jquery.min.js" ],
options: {
compress: {
gz: function( contents ) {
return gzip.zip( contents, {} ).length;
}
},
cache: "dist/.sizecache.json"
}
},
selector: {
destFile: "src/selector-sizzle.js",

View File

@ -30,6 +30,7 @@
"grunt-contrib-jshint": "0.1.1rc6",
"grunt-contrib-uglify": "0.1.2",
"grunt": "0.4.1",
"gzip-js": "0.3.1",
"testswarm": "0.2.2"
},
"keywords": []