Compiling Twitter Bootstrap On The Mac

Title: Compiling twitter bootstrap on the mac Date: 2013-04-28 09:29 Author: eamonnfaherty Category: development Tags: bootstrap Slug: compiling-twitter-bootstrap-on-the-mac

Anybody who knows me in the real world has probably heard me rave about twitter bootstrap. I am not going to get into why it is a good framework or why frameworks are good in this post. If you would like hear stuff like that please contact me and I will see what I can do.

This post is about how to compile your very own copy of bootstrap! Why would you want to do that when the nice guys maintaining the package allow you to choose your own colour scheme? I am very grateful for the customise options but I wanted to be able to able to build the package myself for three reasons: 1) I am a geek and it is a geeky thing to do, 2) I wanted to be able to customise my theme and revisit it improving it as a I continue on my project (the customise page does not have a save/resume feature) and 3) I wanted to create a colour scheme that did not match the default - I didn’t just want to choose the colours and watch them cascade through the package. I wanted to change how the colours cascade through the package.

Without further delay this is what I did:
brew install node.js
You must have the excellent HomeBrew installed to run that command.

Once I had node.js installed it was a simple case of
cd twitter-bootstrap-src npm install make clean make bootstrap

This uses the excellent npm package manager to install the dependencies for bootstrap and then uses make to clean and build bootstrap. Once it completed you will have a working bootstrap installation in twitter-bootstrap-src/bootsrap.

I hope this helps and if you have any questions post a comment and I will try to help!

Published: April 28 2013

  • category:
  • tags:
blog comments powered by Disqus