blob: 0467b77464407540fe14161ca583babbcbe98119 (
plain) (
tree)
|
|
package mill
package playlib
package api
import ammonite.ops.Path
import mill.api.Result
import mill.scalalib.api.CompilationResult
trait RouteCompilerWorkerApi {
def compile(file: Path,
additionalImports: Seq[String],
forwardsRouter: Boolean,
reverseRouter: Boolean,
namespaceReverseRouter: Boolean,
generatorType:RouteCompilerType,
dest: Path)(implicit ctx: mill.api.Ctx):Result[CompilationResult]
}
sealed trait RouteCompilerType
object RouteCompilerType{
case object InjectedGenerator extends RouteCompilerType
case object StaticGenerator extends RouteCompilerType
}
|