japgolly / scalacss

Super type-safe CSS for Scala and Scala.JS.
https://japgolly.github.io/scalacss/book
Apache License 2.0
339 stars 44 forks source link

Any plans about SBT plugin? #30

Open fomkin opened 9 years ago

fomkin commented 9 years ago

It will be cool to use ScalaCSS in compile time. For example I have an Scala.js module named my-super-components. I have creating a set of applications using this module. Sometimes I want dark theme, sometimes light. So I make two ScalaCSS modules (just jar with classes) and plug one of them to project by perforce. Then I enable scalaCSSPlugin in my project. After compilation I will have js file which creates DOM and static css for it.

japgolly commented 9 years ago

It would be cool to have. I don't have any plans for such a thing but I'd be open to collaborating on such a thing. If someone were to do the SBT stuff I could ensure that ScalaCSS does what needs doing.

antonkulaga commented 9 years ago

I am also interested in sbt plugin, but I have no time right now to implement it. @yelbota do you think it should a plugin based on sbtweb?