Skip to content

Instantly share code, notes, and snippets.

@arondeparon
Created March 25, 2013 16:22
Show Gist options
  • Save arondeparon/5238371 to your computer and use it in GitHub Desktop.
Save arondeparon/5238371 to your computer and use it in GitHub Desktop.
Pull and compile SASS
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
#!/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