Skip to content

Failed to generate single outFile #1

@1tchy

Description

@1tchy

The option outFile doesn't seem to create the expected single JS-file.
Although if this option is specified, all other JS-files are not created.

Following you can find an example based on the "complicated"-Test:

build.sbt:

import com.arpnetworking.sbt.typescript.Import.TypescriptKeys._

lazy val root = (project in file(".")).enablePlugins(SbtWeb).settings(
  JsEngineKeys.engineType := JsEngineKeys.EngineType.Node,
  outFile := "myfile.js",
  outDir := "path"
)

libraryDependencies += "org.webjars" % "bootstrap" % "3.0.2"

test:

> assets
$ absent target/web/typescript/main/javascripts/animal.js
$ absent target/web/typescript/main/javascripts/mammal.js
$ absent target/web/typescript/main/javascripts/human.js
$ exists target/web/typescript/path/myfile.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions