Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2012-12-10 12:59:28 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-12-10 12:59:28 +0400
commit48227e1a68e086bda7ff21bc9a56412d4cd8399e (patch)
treed95ced91248aaf5a35abc4ac7a75e4e8f7199222
parent852a473a31e6e7a33c2372f579aeb0dc76b2b476 (diff)
branch -> tag
-rw-r--r--lib/css.js7
-rw-r--r--lib/img.js3
-rw-r--r--lib/js.js3
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'
}