TypeScriptFilter
extends BaseNodeFilter
in package
Compiles TypeScript into JavaScript.
Tags
Table of Contents
- $nodeBin : mixed
- $nodePaths : mixed
- $timeout : mixed
- $tscBin : mixed
- __construct() : mixed
- addNodePath() : mixed
- filterDump() : mixed
- filterLoad() : mixed
- getNodePaths() : mixed
- setNodePaths() : mixed
- setTimeout() : mixed
- Set the process timeout.
- createProcessBuilder() : ProcessBuilder
- Creates a new process builder.
- mergeEnv() : mixed
Properties
$nodeBin
private
mixed
$nodeBin
$nodePaths
private
mixed
$nodePaths
= array()
$timeout
private
mixed
$timeout
$tscBin
private
mixed
$tscBin
Methods
__construct()
public
__construct([mixed $tscBin = '/usr/bin/tsc' ][, mixed $nodeBin = null ]) : mixed
Parameters
- $tscBin : mixed = '/usr/bin/tsc'
- $nodeBin : mixed = null
Return values
mixed —addNodePath()
public
addNodePath(mixed $nodePath) : mixed
Parameters
- $nodePath : mixed
Return values
mixed —filterDump()
public
filterDump(AssetInterface $asset) : mixed
Parameters
- $asset : AssetInterface
Return values
mixed —filterLoad()
public
filterLoad(AssetInterface $asset) : mixed
Parameters
- $asset : AssetInterface
Return values
mixed —getNodePaths()
public
getNodePaths() : mixed
Return values
mixed —setNodePaths()
public
setNodePaths(array<string|int, mixed> $nodePaths) : mixed
Parameters
- $nodePaths : array<string|int, mixed>
Return values
mixed —setTimeout()
Set the process timeout.
public
setTimeout(int $timeout) : mixed
Parameters
- $timeout : int
-
The timeout for the process
Return values
mixed —createProcessBuilder()
Creates a new process builder.
protected
createProcessBuilder([array<string|int, mixed> $arguments = array() ]) : ProcessBuilder
Parameters
- $arguments : array<string|int, mixed> = array()
-
An optional array of arguments
Return values
ProcessBuilder —A new process builder
mergeEnv()
protected
mergeEnv(ProcessBuilder $pb) : mixed
Parameters
- $pb : ProcessBuilder