Created
February 2, 2013 16:55
-
-
Save fititnt/4698264 to your computer and use it in GitHub Desktop.
example that listen to chances and compile LESS to CSS and JS. Make your changes. See https://github.com/twitter/bootstrap#developers $ make alligowatch
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
# | |
# Alligo | |
# | |
alligowatch: | |
echo "Alligo: Watching less files..."; \ | |
watchr -e "watch('less/.*\.less') { system 'make alligo' }" | |
alligo: | |
mkdir -p bootstrap/img | |
mkdir -p bootstrap/css | |
mkdir -p bootstrap/js | |
mkdir -p public_html/img | |
mkdir -p public_html/css | |
mkdir -p public_html/js | |
cp img/* bootstrap/img/ | |
recess --compile ${BOOTSTRAP_LESS} > bootstrap/css/alligo.css | |
# recess --compress ${BOOTSTRAP_LESS} > bootstrap/css/alligo.min.css | |
recess --compile ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/alligo-responsive.css | |
# recess --compress ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/alligo-responsive.min.css | |
cat \ | |
js/jquery-1.9.0.js \ | |
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 \ | |
js/bootstrap-affix.js \ | |
js/alligo.source.js \ | |
> bootstrap/js/alligo.js | |
uglifyjs bootstrap/js/alligo.js -nc > bootstrap/js/alligo.min.tmp.js | |
cat bootstrap/js/alligo.min.tmp.js > bootstrap/js/alligo.min.js | |
rm bootstrap/js/alligo.min.tmp.js | |
cat bootstrap/css/alligo.css bootstrap/css/alligo-responsive.css > public_html/css/alligo.css | |
cp bootstrap/img/* public_html/img/ | |
cp bootstrap/js/* public_html/js/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment