teraslice-cli / helpers/asset-src / AssetSrc
Class: AssetSrc
Defined in: teraslice-cli/src/helpers/asset-src.ts:39
Constructors
new AssetSrc()
new AssetSrc(
srcDir
,devMode
,debug
,bundle
,bundleTarget
,overwrite
):AssetSrc
Defined in: teraslice-cli/src/helpers/asset-src.ts:59
Parameters
Parameter | Type | Default value |
---|---|---|
srcDir | string | undefined |
devMode | boolean | false |
debug | boolean | false |
bundle | boolean | true |
bundleTarget | string | 'node22' |
overwrite | boolean | false |
Returns
Properties
Accessors
buildDir
Get Signature
get buildDir():
string
Defined in: teraslice-cli/src/helpers/asset-src.ts:97
Returns
string
Path to the output directory for the finished asset zipfile
zipFileName
Get Signature
get zipFileName():
string
Defined in: teraslice-cli/src/helpers/asset-src.ts:101
Returns
string
Methods
build()
build():
Promise
<ZipResults
>
Defined in: teraslice-cli/src/helpers/asset-src.ts:182
Returns
Promise
<ZipResults
>
generateRegistry()
generateRegistry():
Promise
<[AssetRegistry
,string
]>
Defined in: teraslice-cli/src/helpers/asset-src.ts:140
generates the registry object that is used to generate the index.js asset registry
Returns
Promise
<[AssetRegistry
, string
]>
operatorFiles()
operatorFiles(
ext
):Promise
<string
[]>
Defined in: teraslice-cli/src/helpers/asset-src.ts:130
operatorFiles finds all of the Teraslice operator files, including: api.js/ts fetcher.js/ts processor.js/ts schema.js/ts slicer.js/ts observer.js/ts
Parameters
Parameter | Type |
---|---|
ext | "js" | "ts" |
Returns
Promise
<string
[]>
array of paths to all of the operator files
zip()
static
zip(tmpAssetDir
,outputFileName
):Promise
<ZipResults
>
Defined in: teraslice-cli/src/helpers/asset-src.ts:348
zip - Creates properly named zip archive of asset from tmpAssetDir
Parameters
Parameter | Type | Description |
---|---|---|
tmpAssetDir | string | Path to the temporary asset source directory |
outputFileName | string |
Returns
Promise
<ZipResults
>
ZipResults