From 48227e1a68e086bda7ff21bc9a56412d4cd8399e Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Mon, 10 Dec 2012 00:59:28 -0800 Subject: branch -> tag --- lib/css.js | 7 ++----- lib/img.js | 3 ++- lib/js.js | 3 ++- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/css.js b/lib/css.js index f3cb5aa..04cb00c 100644 --- a/lib/css.js +++ b/lib/css.js @@ -23,7 +23,7 @@ var path = require('path') , https = require('https') , less = require('less') , CACHE = {} - , BRANCH = "master" + , TAG = "v2.2.2" , CW = "/*!\n * Bootstrap v2.2.2\n *\n * Copyright 2012 Twitter, Inc\n * Licensed under the Apache License v2.0\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Designed and built with all the love in the world @twitter by @mdo and @fat.\n */\n" , ERROR = "A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!\n\n thanks!\n\n" , FILES = [ // CSS Reset @@ -92,8 +92,6 @@ function cache(callback) { var complete = 0 , _cache = {} - console.log('trying to cache files') - FILES.forEach(function (filename) { var req , res @@ -101,7 +99,7 @@ function cache(callback) { , options = { host: 'raw.github.com' , port: 443 - , path: path.join('/twitter/bootstrap/', BRANCH, '/less/', filename) + , path: path.join('/twitter/bootstrap/', TAG, '/less/', filename) , method: 'GET' } @@ -120,7 +118,6 @@ function cache(callback) { if (++complete == FILES.length) { CACHE = _cache callback && callback(null, CACHE) - console.log('cache complete !!!!!!!!!!!!!!!!!!') } }) diff --git a/lib/img.js b/lib/img.js index fe1a606..828ac4d 100644 --- a/lib/img.js +++ b/lib/img.js @@ -21,6 +21,7 @@ var path = require('path') , https = require('https') + , TAG = 'v2.2.2' , CACHE = {} , FILES = [ 'glyphicons-halflings.png' , 'glyphicons-halflings-white.png' ] @@ -37,7 +38,7 @@ function cache(callback) { , options = { host: 'raw.github.com' , port: 443 - , path: path.join('/twitter/bootstrap/master/img/', filename) + , path: path.join('/twitter/bootstrap', TAG, 'img', filename) , method: 'GET' } diff --git a/lib/js.js b/lib/js.js index 2c70b96..44373f5 100644 --- a/lib/js.js +++ b/lib/js.js @@ -22,6 +22,7 @@ var uglifyJS = require('uglify-js') , path = require('path') , https = require('https') + , TAG = 'v2.2.2' , CACHE = {} , FILES = [ "bootstrap-transition.js" , "bootstrap-affix.js" @@ -48,7 +49,7 @@ function cache() { , options = { host: 'raw.github.com' , port: 443 - , path: path.join('/twitter/bootstrap/master/js/', filename) + , path: path.join('/twitter/bootstrap/', TAG, '/js/', filename) , method: 'GET' } -- cgit v1.2.3