This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 456
Integration with Compass
Dave Olsen edited this page Nov 7, 2013
·
3 revisions
Note: These directions are rough. They worked for me but YMMV. We also have to streamline the workflow.
Setting up Compass to work with the PHP version of Pattern Lab should be really straightforward. To set-up a Compass config that uses SCSS and doesn't install any starter stylesheets do the following:
- Open Terminal on a Mac
-
gem install compass
(if you don't have it) cd <patternlab-project-folder>
compass create --bare --sass-dir "source/css" --css-dir "source/css" --javascripts-dir "source/js" --images-dir "source/images"
You should be ready to rock & roll.
Compass will only recompile your SCSS. To get Pattern Lab to rebuild your entire site as well as reload the browser when your SCSS files have been updated do the following:
- Open Terminal on a Mac
cd <patternlab-project-folder>
compass watch
- Open a new tab in Terminal
php builder/builder.php -w
- Open a new tab in Terminal
php listeners/contentSyncBroadcasterServer.php
- Reload your browser
As you make changes to the SCSS files Compass will recompile them and, seeing the changes to styles.css
, the PHP version of Pattern Lab will rebuild the entire site. It should also reload the Pattern Lab website.