Remove compiled scalajs files from final package

Only the js file is necessary, the intermediate sjs files are not
needed at runtime.
This commit is contained in:
Eike Kettner 2021-05-30 09:58:58 +02:00
parent 463c9c2a8b
commit 63dc6fe13d

View File

@ -556,7 +556,14 @@ val restserver = project
"-Xmx150M", "-Xmx150M",
"-XX:+UseG1GC" "-XX:+UseG1GC"
), ),
Revolver.enableDebugging(port = 5050, suspend = false) Revolver.enableDebugging(port = 5050, suspend = false),
Universal / mappings := {
val allMappings = (Universal / mappings).value
allMappings.filter {
//scalajs artifacts are not needed at runtime
case (file, name) => !name.contains("_sjs1_")
}
}
) )
.dependsOn(restapi, joexapi, backend, webapp, ftssolr) .dependsOn(restapi, joexapi, backend, webapp, ftssolr)
@ -771,7 +778,7 @@ def packageTools(logger: Logger, dir: File, version: String): Seq[File] = {
addCommandAlias( addCommandAlias(
"make", "make",
";set webapp/elmCompileMode := ElmCompileMode.Production; set webapp/stylesMode := StylesMode.Prod ;root/openapiCodegen ;root/test:compile" ";set webapp/elmCompileMode := ElmCompileMode.Production; set webapp/stylesMode := StylesMode.Prod ;root/openapiCodegen ;root/Test/compile"
) )
addCommandAlias("make-zip", ";restserver/universal:packageBin ;joex/universal:packageBin") addCommandAlias("make-zip", ";restserver/universal:packageBin ;joex/universal:packageBin")
addCommandAlias("make-deb", ";restserver/debian:packageBin ;joex/debian:packageBin") addCommandAlias("make-deb", ";restserver/debian:packageBin ;joex/debian:packageBin")