Skip to content

Instantly share code, notes, and snippets.

@inlikealion
Created August 15, 2012 21:06
Show Gist options
  • Save inlikealion/3363689 to your computer and use it in GitHub Desktop.
Save inlikealion/3363689 to your computer and use it in GitHub Desktop.
Add Compass to an existing project (so it doesn't overwrite your files/directory structure).
compass create . --bare --sass-dir "source/assets/ss/sass" --css-dir "source/assets/ss/css" --javascripts-dir "source/assets/js" --images-dir "source/assets/img"
@inlikealion
Copy link
Author

This assumes a repo has structure like:

repo/
  deploy/
  source/
    assets/
      img/
      js/
      ss/
    index.html

@inlikealion
Copy link
Author

For a more shallow structure (lacking a source level), use:

compass create . --bare --sass-dir "assets/ss/sass" --css-dir "assets/ss/css" --javascripts-dir "assets/js" --images-dir "assets/img"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment