From 157632ef48d5e6bd4b667802f535c02e3bca91b0 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 24 Apr 2012 02:00:06 -0700 Subject: change builder in preperation for 2.0.3 release --- .gitignore | 1 + index.js | 4 ++-- lib/css.js | 13 +++++++++---- package.json | 21 +++++++++------------ 4 files changed, 21 insertions(+), 18 deletions(-) create mode 100644 .gitignore 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 -- cgit v1.2.3