Skip to content

Instantly share code, notes, and snippets.

@buzzedword
Created May 23, 2012 19:18
Show Gist options
  • Select an option

  • Save buzzedword/2777199 to your computer and use it in GitHub Desktop.

Select an option

Save buzzedword/2777199 to your computer and use it in GitHub Desktop.
One of these days, I'll turn this into an actual script.
# Requires UglifyJS and LESSCSS
alias reduce="cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-modal.js js/bootstrap-dropdown.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-button.js js/bootstrap-collapse.js js/bootstrap-carousel.js js/bootstrap-typeahead.js | uglifyjs -o js/bootstrap-concat.min.js -nc"
alias twitter-bootstrap-full="clear && echo 'Cloning the Twitter Bootstrap...' && git clone git://github.com/twitter/bootstrap.git && echo 'Switching version to 2.0.3...' && cd bootstrap && git checkout v2.0.3 && echo 'Reducing javascript files to a single concatinated version...' && reduce && echo 'Creating initial bootstrap.css...' && mkdir css && lessc less/bootstrap.less css/bootstrap.css && echo 'Final cleanup...' && rm LICENSE Makefile README.md package.json .gitignore .travis.yml js/README.md && rm -rf .git docs js/tests less/tests && cd ../ && echo 'Twitter bootstrap setup completed.'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment