From 5f5f1b1e097d19cbce68fe7f718f64ea8321644e Mon Sep 17 00:00:00 2001 From: Kit Cambridge Date: Thu, 18 Oct 2012 23:30:18 -0700 Subject: [PATCH] Add download progress messages and a comment explaining the `Accept` header to the post-install script. Former-commit-id: 10ed30f49f3028169610f7e4a10427e55a4c25eb --- build/post-install.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/post-install.js b/build/post-install.js index 233a829ad..bafa2883a 100644 --- a/build/post-install.js +++ b/build/post-install.js @@ -30,6 +30,9 @@ 'host': 'api.github.com', 'path': '/repos/bestiejs/lodash/git/blobs/' + objectId, 'headers': { + // by default, all GitHub blob API endpoints return a JSON document + // containing Base64-encoded blob data. Overriding the `Accept` header + // with the GitHub raw media type returns the blob data directly. 'Accept': 'application/vnd.github.v3.raw' } }, function(response) { @@ -54,6 +57,7 @@ return; } // download Closure Compiler + console.log('Downloading Closure Compiler...'); getDependency('aa29a2ecf6f51d4da5a2a418c0d4ea0e368ee80d', vendorPath, function(exception) { var statusCode = 0; if (exception) { @@ -61,6 +65,7 @@ statusCode = 1; } // download UglifyJS + console.log('Downloading UglifyJS...'); getDependency('827f406a02626c1c6723e8ae281b6785d36375c1', vendorPath, function(exception) { if (exception) { console.error('There was a problem downloading UglifyJS.');