Isn't what you need more an sbt plugin, than a lift plugin?
I think someone asked for this not too long ago, and they found an sbt plugin that did the compile.
If you search for sass you may find it (I hope)
Regards
Diego
Sent from my android cell
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
Hey Diego,
Yeah, you might be right. I only asked if there was lift plugin because theres a specifically Play 2.0 plugin that does this, so I thought there may be a similar one for lift.
I've tried searching for SASS sbt plugins and couldn't find any... :/ Searching for SASS in this group didn't yeild many results either. When I get to the office, I'll try again.
But I agree an sbt is probably what I'm looking for.
-Steve
and then add some sbt task dependencies which simply run `bundle` and `bundle exec compass`.
Everything you said sounds cool. All the developers I'm working with should already have ruby on their computer, so I think for the time being I can skip the step of adding JRuby as an sbt dependency(although, ideally I'd like to, I think).I created a Gemfile that installs compass and sass.This is all it is:source :gemcuttergem 'compass', '0.12.1'gem 'sass', '3.1.15'Seems to work fine.
I'm having trouble with the last part of your comment.and then add some sbt task dependencies which simply run `bundle` and `bundle exec compass`.I've been reading through the sbt guide files and I can't seem to figure out how to do this. I'm kind've a noob when it comes to sbt and a a lot of it is over my head. Do you think you could help point me in the right direction for adding tasks to run on compile. I'd love for 'compass compile' to run every time sbt compiles my project.
A quick and really dirty hack would be adding this line to build.sbtcompile in Compile ~= ( oldCompile => { if ("bundle exec compass".! != 0) throw new RuntimeException("Compass error"); oldCompile} )It enriches the old compile command. Before it compiles, it executes the process `bundle exec compass`; a non-zero return code throws an exception, otherwise the regular compilation is triggered. (This can be done much nicer and one probably would use some more specialised exception; but I’m not too much into sbt definitions either. But hey, it seems to work.)
[error] Expected end of input.[error] resources:compile-sass[error] ^