-
-
Save jasonsperske/4560631 to your computer and use it in GitHub Desktop.
A batch file that can run on a Windows workstation with Node.js, JSHint, Recess, and UglifyJS to compile Twitter Bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
REM | |
REM 01.17.2013, Requires Node.js, JSHint, Recess, and UglifyJS (installed in the path) | |
REM Run this command after node.js is installed | |
REM npm install -g less jshint recess uglify-js | |
REM | |
MKDIR bootstrap\img | |
MKDIR bootstrap\css | |
MKDIR bootstrap\js | |
COPY img\* bootstrap\img | |
CALL lessc less\bootstrap.less > bootstrap\css\bootstrap.css | |
CALL lessc -x less\bootstrap.less > bootstrap\css\bootstrap.min.css | |
CALL lessc less\responsive.less > bootstrap\css\bootstrap-responsive.css | |
CALL lessc -x less\responsive.less > bootstrap\css\bootstrap-responsive.min.css | |
COPY /B ^ | |
js\bootstrap-transition.js+ ^ | |
js\bootstrap-alert.js+ ^ | |
js\bootstrap-button.js+ ^ | |
js\bootstrap-carousel.js+ ^ | |
js\bootstrap-collapse.js+ ^ | |
js\bootstrap-dropdown.js+ ^ | |
js\bootstrap-modal.js+ ^ | |
js\bootstrap-tooltip.js+ ^ | |
js\bootstrap-popover.js+ ^ | |
js\bootstrap-scrollspy.js+ ^ | |
js\bootstrap-tab.js+ ^ | |
js\bootstrap-typeahead.js bootstrap\js\bootstrap.js | |
CALL uglifyjs bootstrap\js\bootstrap.js > bootstrap\js\bootstrap.min.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed bug in COPY command where combined file was picking up a junk character at the end, and added responsive.less to the build (also renamed it)