Allow compass project directory to be set. #490

Open
wants to merge 3 commits into
from

Projects

None yet

4 participants

@hjr3
hjr3 commented Aug 23, 2013

This adds support for path/to/project when using compass compile. When
compass generates sprites, it puts them into the project path. Assetic
configuration can now specify the location where those sprites are
created.

@hjr3 hjr3 Allow compass project directory to be set.
This adds support for path/to/project when using `compass compile`. When
compass generates sprites, it puts them into the project path. Assetic
configuration can now specify the location where those sprites are
created.
b651128
@kriswallsmith kriswallsmith and 1 other commented on an outdated diff Sep 1, 2013
src/Assetic/Filter/CompassFilter.php
// compass does not seems to handle symlink, so we use realpath()
- $tempDir = realpath(sys_get_temp_dir());
+ $projectDir = realpath($projectDir);
@kriswallsmith
kriswallsmith Sep 1, 2013 owner

I'd rather not call realpath() when someone has manually set the project directory, only when we're using the temp directory.

@hjr3
hjr3 Sep 1, 2013

Sure, I can change that right now.

@hjr3
hjr3 Sep 1, 2013

Someone can still manually set the project directory to be a symlink, but I guess we can deal with that case later.

@baldurrensch

ping

@hjr3 hjr3 Put the scss file in project_dir
Newer versions of compass require the scss file(s) to be in the same directory as the project_dir. Failure to do so will result in the following compass error: `You must compile individual stylesheets from the project directory.`
1a2f083
@VikramHauteLook

👍

@hjr3 hjr3 referenced this pull request in hautelook/AsseticBundle Mar 12, 2014
@hjr3 hjr3 Add project_dir assetic support 6671af3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment