]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Adding filesize of unminified source to build script
authorTim Wood <washwithcare@gmail.com>
Mon, 17 Oct 2011 20:37:08 +0000 (13:37 -0700)
committerTim Wood <washwithcare@gmail.com>
Mon, 17 Oct 2011 20:37:08 +0000 (13:37 -0700)
build.js
docs/index.html

index 4c827b907dd0f9d0519c14d4f1ff5ce211e9d927..1e1bce9c3236c8c99a60adca45754421ec2376a1 100755 (executable)
--- a/build.js
+++ b/build.js
@@ -159,4 +159,7 @@ function hint(source, name) {
     if (hint(source, 'moment')) {
         minifyToFile(source, 'moment', MINIFY_COMMENT);
     }
+    gzip(source, function(err, data) {
+        console.log('size : ./moment.js ' + source.length + ' b (' + data.length + ' b)');
+    });
 })();
\ No newline at end of file
index 163ff729ad2f9a8d8a8912d949073d47d2ba2728..e104bf650eb62df4fa4691d285ca18c44ba5bff7 100644 (file)
@@ -81,7 +81,7 @@
             <a name="/get-it/github"></a>
             <h2>Github</h2>
             <p>
-                <a href="http://github.com/timrwood/moment/moment.js">Development Version (1.0.0)</a> 20k Source + Comments
+                <a href="http://github.com/timrwood/moment/moment.js">Development Version (1.0.0)</a> 16k Source + Comments
             </p>
             <p>
                 <a href="http://github.com/timrwood/moment/moment.min.js">Production Version (1.0.0)</a> 2.2k Minified + Gzipped.