WpwTscService

new WpwTscService()

Members

_cacheKeyTsConfig :string

Type:
  • string

_defaultExclude :Array.<string>

Type:
  • Array.<string>

_tmpFileId :number

Type:
  • number

Methods

execTsc(args, cwdopt, lPadopt, timeoutopt) → {Promise.<(WpwExecResult|undefined)>}

Parameters:
NameTypeAttributesDefaultDescription
argsArray.<string>
cwdstring<optional>
lPadstring<optional>
timeoutnumber<optional>
30000
Returns:
Type: 
Promise.<(WpwExecResult|undefined)>

getCompilerOptions(compilerOptionsopt) → {WpwTsCompilerOptions}

Parameters:
NameTypeAttributesDescription
compilerOptionsWpwTsCompilerOptions<optional>

strong-merged compiler to apply to the build's configured options

Since
  • 1.12.0
See
  • href="https:%5C/%5C/www.typescriptlang.org/tsconfig">tsconfig.reference

Returns:
Type: 
WpwTsCompilerOptions

getEnvPlatformConfig(tsconfig, tsconfigRc, lPad) → {WpwTsConfigFileFull}

Parameters:
NameTypeDescription
tsconfigWpwTsConfigFile
tsconfigRcWpwTsConfigFile
lPadstring
Returns:
Type: 
WpwTsConfigFileFull

getTranspilationCompilerOptions(compilerOptionsopt) → {WpwTsCompilerOptions}

Parameters:
NameTypeAttributesDescription
compilerOptionsWpwTsCompilerOptions<optional>

strong-merged compiler to apply to the build's configured options

Since
  • 1.12.0
See
  • href="https:%5C/%5C/www.typescriptlang.org/tsconfig">tsconfig.reference

Returns:
Type: 
WpwTsCompilerOptions

getTsConfig(compilerOptionsopt) → {WpwTsConfigFileFile}

Parameters:
NameTypeAttributesDescription
compilerOptionsWpwTsCompilerOptions<optional>

compilerOptions to merge into tsconfig.compilerOptions

Returns:
Type: 
WpwTsConfigFileFile

(async) init(cfg, lPad) → {Promise.<Partial.<IWpwSourceCodeInfo>>}

Parameters:
NameTypeDescription
cfgRequired.<WpwSourceCodeConfig>
lPadstring
Throws:
Error
Returns:
Type: 
Promise.<Partial.<IWpwSourceCodeInfo>>

WpwTscService

new WpwTscService(options)

Parameters:
NameTypeDescription
optionsWpwServiceOwnerOptions

Members

_cacheKeyTsConfig :string

Type:
  • string

_defaultExclude :Array.<string>

Type:
  • Array.<string>

_tmpFileId :number

Type:
  • number

Methods

execTsc(args, cwdopt, lPadopt, timeoutopt) → {Promise.<(WpwExecResult|undefined)>}

Parameters:
NameTypeAttributesDefaultDescription
argsArray.<string>
cwdstring<optional>
lPadstring<optional>
timeoutnumber<optional>
30000
Returns:
Type: 
Promise.<(WpwExecResult|undefined)>

getCompilerOptions(compilerOptionsopt) → {WpwTsCompilerOptions}

Parameters:
NameTypeAttributesDescription
compilerOptionsWpwTsCompilerOptions<optional>

strong-merged compiler to apply to the build's configured options

Since
  • 1.12.0
See
  • href="https:%5C/%5C/www.typescriptlang.org/tsconfig">tsconfig.reference

Returns:
Type: 
WpwTsCompilerOptions

getEnvPlatformConfig(tsconfig, tsconfigRc, lPad) → {WpwTsConfigFileFull}

Parameters:
NameTypeDescription
tsconfigWpwTsConfigFile
tsconfigRcWpwTsConfigFile
lPadstring
Returns:
Type: 
WpwTsConfigFileFull

getTranspilationCompilerOptions(compilerOptionsopt) → {WpwTsCompilerOptions}

Parameters:
NameTypeAttributesDescription
compilerOptionsWpwTsCompilerOptions<optional>

strong-merged compiler to apply to the build's configured options

Since
  • 1.12.0
See
  • href="https:%5C/%5C/www.typescriptlang.org/tsconfig">tsconfig.reference

Returns:
Type: 
WpwTsCompilerOptions

getTsConfig(compilerOptionsopt) → {WpwTsConfigFileFile}

Parameters:
NameTypeAttributesDescription
compilerOptionsWpwTsCompilerOptions<optional>

compilerOptions to merge into tsconfig.compilerOptions

Returns:
Type: 
WpwTsConfigFileFile

(async) init(cfg, lPad) → {Promise.<Partial.<IWpwSourceCodeInfo>>}

Parameters:
NameTypeDescription
cfgRequired.<WpwSourceCodeConfig>
lPadstring
Throws:
Error
Returns:
Type: 
Promise.<Partial.<IWpwSourceCodeInfo>>