Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #34 from ricardrobin/master

Add Twitter's bootstrap toolkit
  • Loading branch information...
commit f82b2c36694ea0e80ef9e7ae3e79dc8b00473da0 2 parents ed93898 + 53d6dc1
TJ Holowaychuk authored
Showing with 25 additions and 1 deletion.
  1. +23 −0 assets.json
  2. +2 −1  lib/installer.js
23 assets.json
View
@@ -17,6 +17,29 @@
],
"version": "1.0"
},
+ "bootstrap": {
+ "url": "https://github.com/twitter/bootstrap/raw/v{version}/bootstrap-{version}.css",
+ "compressed": "bootstrap-{version}.min.css",
+ "description": "CSS toolkit from Twitter",
+ "tags": ["css", "twitter"],
+ "version": "1.1.1"
+ },
+ "bootstrap-less": {
+ "base": "https://github.com/twitter/bootstrap/raw/v{version}",
+ "description": "CSS toolkit from Twitter (LESS Source)",
+ "tags": ["css", "twitter", "less"],
+ "files": [
+ "lib/bootstrap.less",
+ "lib/forms.less",
+ "lib/patterns.less",
+ "lib/preboot.less",
+ "lib/reset.less",
+ "lib/scaffolding.less",
+ "lib/tables.less",
+ "lib/type.less"
+ ],
+ "version": "1.1.1"
+ },
"eventemitter2": {
"url": "https://github.com/hij1nx/EventEmitter2/blob/v{version}/lib/eventemitter2.js",
"description": "nodejs-style event emitter with namespaces, wildcards, TTL etc",
3  lib/installer.js
View
@@ -190,7 +190,8 @@ Installer.prototype.download = function(asset, path){
var self = this
, version = asset.version
, url = asset.entry[asset.compress ? 'compressed' : 'url'] || asset.entry.url
- , url = url.replace(/\{version\}/g, version);
+ , url = url.replace(/\{version\}/g, version)
+ , path = path.replace(/\{version\}/g, version);
// compressed
if (asset.compress && asset.entry.compressed) {
Please sign in to comment.
Something went wrong with that request. Please try again.