Class TypescriptExtension
-
- All Implemented Interfaces:
-
java.io.Serializable
public class TypescriptExtension implements Serializable
The extension for configuring TypeScript plugin.
-
-
Field Summary
Fields Modifier and Type Field Description private final Property<String>entrypointprivate final Property<String>outputDirprivate final Property<String>tsConfigprivate final Property<BuildCommandExecutable>buildCommandExecutableprivate final Property<String>buildCommand
-
Constructor Summary
Constructors Constructor Description TypescriptExtension(ObjectFactory objects)
-
Method Summary
Modifier and Type Method Description final Property<String>getEntrypoint()The name (or path) of the entrypoint file to run within Node. final Property<String>getOutputDir()The path to the TypeScript output directory. final Property<String>getTsConfig()The path to the TypeScript configuration file. final Property<BuildCommandExecutable>getBuildCommandExecutable()Custom build command type. final Property<String>getBuildCommand()Custom build command. -
-
Method Detail
-
getEntrypoint
final Property<String> getEntrypoint()
The name (or path) of the entrypoint file to run within Node. This would be appended to outputDir to create the full path. Default is "app.js".
-
getOutputDir
final Property<String> getOutputDir()
The path to the TypeScript output directory. Default is "build/dist".
-
getTsConfig
final Property<String> getTsConfig()
The path to the TypeScript configuration file. Default is "tsconfig.json".
-
getBuildCommandExecutable
final Property<BuildCommandExecutable> getBuildCommandExecutable()
Custom build command type. Default is BuildCommandExecutable.DEFAULT and the plugin will run the following command:
npx tsc --project [tsConfig] --outDir [outputDir]If buildCommandExecutable is set to different value, the plugin will execute the buildCommand instead.
-
getBuildCommand
final Property<String> getBuildCommand()
Custom build command.
-
-
-
-