Created
March 25, 2013 16:22
-
-
Save arondeparon/5238371 to your computer and use it in GitHub Desktop.
Pull and compile SASS
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
http_path = "/" | |
css_dir = "../css" | |
sass_dir = "./" | |
images_dir = "../images" | |
javascripts_dir = "../js" | |
environment = :production | |
relative_assets = true | |
output_style = (environment == :production) ? :compressed : :expanded | |
preferred_syntax = :scss |
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
#!/bin/bash | |
# Do a git pull and compile SASS. | |
# This is for the lazy ones. | |
USER=${1:-YOUR_USER_GOES_HERE} | |
SASS_DIR="./wp-content/themes/YOUR_THEME_GOES_HERE/library/scss" | |
# Do it! | |
sudo -u $USER git pull | |
sudo -u $USER compass compile $SASS_DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment