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-04-24 13:00:06 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-04-24 13:00:06 +0400
commit157632ef48d5e6bd4b667802f535c02e3bca91b0 (patch)
tree0709bad463e4f34ef2488456014046b01bd16847
parentc9be9408d5896cadc3d3b79e40ac16c3dc03effd (diff)
change builder in preperation for 2.0.3 release
-rw-r--r--.gitignore1
-rw-r--r--index.js4
-rw-r--r--lib/css.js13
-rw-r--r--package.json21
4 files changed, 21 insertions, 18 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3c3629e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules
diff --git a/index.js b/index.js
index 57632d3..a37b024 100644
--- a/index.js
+++ b/index.js
@@ -29,7 +29,7 @@ types.img = require('./lib/img')
types.js = require('./lib/js')
types.css = require('./lib/css')
-app.use(express.bodyParser());
+app.use(express.bodyParser())
function refreshCache() {
Object.keys(types).forEach(function (type) {
@@ -75,4 +75,4 @@ app.post('/', function(req, res) {
res.send(archive.toBuffer())
})
-app.listen(process.env.PORT || 3000)
+app.listen(process.env.PORT || 3000) \ No newline at end of file
diff --git a/lib/css.js b/lib/css.js
index 4a353be..dc55c4b 100644
--- a/lib/css.js
+++ b/lib/css.js
@@ -23,6 +23,7 @@ var path = require('path')
, https = require('https')
, less = require('less')
, CACHE = {}
+ , BRANCH = "master"
, CW = "/*!\n * Bootstrap v2.0.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. Please paste the error below in an issue for us at http://github.com/twitter/bootsrap! thanks!\n\n"
, FILES = [ "variables.less"
@@ -33,8 +34,7 @@ var path = require('path')
, "layouts.less"
, "type.less"
, "code.less"
- , "labels.less"
- , "badges.less"
+ , "labels-badges.less"
, "tables.less"
, "forms.less"
, "buttons.less"
@@ -59,7 +59,12 @@ var path = require('path')
, "close.less"
, "utilities.less"
, "component-animations.less"
- , "responsive.less" ]
+ , "responsive-1200px-min.less"
+ , "responsive-767px-max.less"
+ , "responsive-768px-979px.less"
+ , "responsive-navbar.less"
+ , "responsive-utilities.less" ]
+
function cache(callback) {
var complete = 0
@@ -72,7 +77,7 @@ function cache(callback) {
, options = {
host: 'raw.github.com'
, port: 443
- , path: path.join('/twitter/bootstrap/master/less/', filename)
+ , path: path.join('/twitter/bootstrap/', BRANCH, '/less/', filename)
, method: 'GET'
}
diff --git a/package.json b/package.json
index f62c42a..0893a68 100644
--- a/package.json
+++ b/package.json
@@ -1,22 +1,19 @@
{
- "name": "bootstrap-server"
+ "name": "bootstrap-server"
, "description": "a build tool for bootstrap"
, "version": "1.0.0"
, "engines": { "node": ">= 0.4.1" }
, "main": "web.js"
, "dependencies": {
- "express": "2.5.5"
- , "uglify-js": "1.2.4"
- , "less": "1.3.0"
- , "node-native-zip": "1.0.1"
+ "express": "2.5.5"
+ , "uglify-js": "1.2.4"
+ , "less": "1.3.0"
+ , "node-native-zip": "1.0.1"
+ }
, "author": "Twitter Inc."
, "repository": {
- "type": "git"
+ "type": "git"
, "url": "https://github.com/twitter/bootstrap-server.git"
- }
- , "licenses": [
- { "type": "Apache-2.0"
- , "url": "http://www.apache.org/licenses/LICENSE-2.0"
}
- }
-}
+ , "licenses": [ { "type": "Apache-2.0" , "url": "http://www.apache.org/licenses/LICENSE-2.0" } ]
+} \ No newline at end of file