diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2012-12-10 12:59:28 +0400 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2012-12-10 12:59:28 +0400 |
commit | 48227e1a68e086bda7ff21bc9a56412d4cd8399e (patch) | |
tree | d95ced91248aaf5a35abc4ac7a75e4e8f7199222 | |
parent | 852a473a31e6e7a33c2372f579aeb0dc76b2b476 (diff) |
branch -> tag
-rw-r--r-- | lib/css.js | 7 | ||||
-rw-r--r-- | lib/img.js | 3 | ||||
-rw-r--r-- | lib/js.js | 3 |
3 files changed, 6 insertions, 7 deletions
@@ -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 !!!!!!!!!!!!!!!!!!') } }) @@ -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' } @@ -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' } |