sbt / sbt-boilerplate

sbt plugin for generating scala.Tuple/Function related boilerplate code
BSD 2-Clause "Simplified" License
109 stars 19 forks source link

Not all source directories searched #20

Closed marklister closed 8 years ago

marklister commented 8 years ago

Using 0.6.0-SNAPSHOT

My project is a combined scala-js and scala-jvm project. Here is the build.sbt

The shared/src directory is not searched for templates.

It was a while ago but I think this hack fixed this problem.

[updated build.sbt link]

jrudolph commented 8 years ago

Thanks for the reproduction. I sent you https://github.com/marklister/product-collections/pull/36 which seems to work for your project.

It wouldn't work if you needed several source directories. I created #21 to track this issue.

marklister commented 8 years ago

Appologies, I had done most of this locally except for pc.jvm.enablePlugins(spray.boilerplate.BoilerplatePlugin) and the js equivalent

marklister commented 8 years ago

I remember I originally had separate templates for JVM and JS because the parsers for JVM and JS were different. I think that hack solved that problem.