new WpwTscService()
- Source
Members
_cacheKeyTsConfig :string
Type:
- string
- Source
_defaultExclude :Array.<string>
Type:
- Array.<string>
- Source
_tmpFileId :number
Type:
- number
- Source
Methods
execTsc(args, cwdopt, lPadopt, timeoutopt) → {Promise.<(WpwExecResult|undefined)>}
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
args | Array.<string> | |||
cwd | string | <optional> | ||
lPad | string | <optional> | ||
timeout | number | <optional> | 30000 |
- Source
Returns:
- Type:
- Promise.<(WpwExecResult|undefined)>
getCompilerOptions(compilerOptionsopt) → {WpwTsCompilerOptions}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
compilerOptions | WpwTsCompilerOptions | <optional> | strong-merged compiler to apply to the build's configured options |
- Since
- 1.12.0
- Source
- See
href="https:%5C/%5C/www.typescriptlang.org/tsconfig">tsconfig.reference
Returns:
- Type:
- WpwTsCompilerOptions
getEnvPlatformConfig(tsconfig, tsconfigRc, lPad) → {WpwTsConfigFileFull}
Parameters:
| Name | Type | Description |
|---|---|---|
tsconfig | WpwTsConfigFile | |
tsconfigRc | WpwTsConfigFile | |
lPad | string |
- Source
Returns:
- Type:
- WpwTsConfigFileFull
getTranspilationCompilerOptions(compilerOptionsopt) → {WpwTsCompilerOptions}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
compilerOptions | WpwTsCompilerOptions | <optional> | strong-merged compiler to apply to the build's configured options |
- Since
- 1.12.0
- Source
- See
href="https:%5C/%5C/www.typescriptlang.org/tsconfig">tsconfig.reference
Returns:
- Type:
- WpwTsCompilerOptions
getTsConfig(compilerOptionsopt) → {WpwTsConfigFileFile}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
compilerOptions | WpwTsCompilerOptions | <optional> | compilerOptions to merge into tsconfig.compilerOptions |
- Source
Returns:
- Type:
- WpwTsConfigFileFile
(async) init(cfg, lPad) → {Promise.<Partial.<IWpwSourceCodeInfo>>}
Parameters:
| Name | Type | Description |
|---|---|---|
cfg | Required.<WpwSourceCodeConfig> | |
lPad | string |
- Source
Throws:
Error
Returns:
- Type:
- Promise.<Partial.<IWpwSourceCodeInfo>>