summaryrefslogtreecommitdiff
path: root/contrib/playlib/api/src/RouteCompilerWorkerApi.scala
blob: 0467b77464407540fe14161ca583babbcbe98119 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
}