Skip to main content

Interface: HostApi

@pvm/core.HostApi

Hierarchy

Properties

cwd

• cwd: string

Inherited from

PluginsApi.cwd

Defined in

packages/pvm-core/lib/plugins/index.ts:52


features

• features: Object

Type declaration

NameType
attributeReleaseDatastring
commitsToNotesstring
notifyScriptsPathstring
preReleaseHookstring
releaseInfoFromReleaseCtxstring
releaseInfoFromVcsstring
releaseTypestring
releaseTypeBuilderstring
releaseTypeByCommitsstring

Inherited from

PluginsApi.features

Defined in

packages/pvm-core/lib/plugins/index.ts:51

Methods

addPipeline

â–¸ addPipeline<R>(name, fn): void

Type parameters

NameType
Rany

Parameters

NameType
namestring
fnPipelineFn<R>

Returns

void

Inherited from

PluginsApi.addPipeline

Defined in

packages/pvm-core/lib/plugins/index.ts:62


attributeReleaseData

â–¸ attributeReleaseData(releaseData, updateState): Promise<ReleaseDataExt>

Parameters

NameType
releaseDataReleaseData
updateStatenull | UpdateState

Returns

Promise<ReleaseDataExt>

Defined in

packages/pvm-core/lib/plugins/index.ts:74


commitsToNotes

â–¸ commitsToNotes(commits, maybePkg?): Promise<string>

Parameters

NameType
commitsCommit[]
maybePkg?void | Pkg

Returns

Promise<string>

Defined in

packages/pvm-core/lib/plugins/index.ts:68


getDefaultImpl

â–¸ getDefaultImpl<K>(feature): Features[K]

Type parameters

NameType
Kextends string | number

Parameters

NameType
featureK

Returns

Features[K]

Inherited from

PluginsApi.getDefaultImpl

Defined in

packages/pvm-core/lib/plugins/index.ts:56


getOr

â–¸ getOr<K, D>(feature, defaultIml): D | Features[K]

Type parameters

NameType
Kextends string | number
DD

Parameters

NameType
featureK
defaultImlD

Returns

D | Features[K]

Inherited from

PluginsApi.getOr

Defined in

packages/pvm-core/lib/plugins/index.ts:57


has

â–¸ has<K>(feature): boolean

Type parameters

NameType
Kextends string | number

Parameters

NameType
featureK

Returns

boolean

Inherited from

PluginsApi.has

Defined in

packages/pvm-core/lib/plugins/index.ts:58


notifyScriptsPath

â–¸ notifyScriptsPath(): Promise<string>

Returns

Promise<string>

Defined in

packages/pvm-core/lib/plugins/index.ts:75


plEachSeries

â–¸ plEachSeries(name, ...args): Promise<any>

Parameters

NameType
namestring
...argsany[]

Returns

Promise<any>

Inherited from

PluginsApi.plEachSeries

Defined in

packages/pvm-core/lib/plugins/index.ts:64


plPipe

â–¸ plPipe<D>(name, initialValue, ...args): Promise<any>

Type parameters

Name
D

Parameters

NameType
namestring
initialValueD
...argsany[]

Returns

Promise<any>

Inherited from

PluginsApi.plPipe

Defined in

packages/pvm-core/lib/plugins/index.ts:63


preReleaseHook

â–¸ preReleaseHook(vcs, releaseContext): Promise<void>

Parameters

NameType
vcsVcsPlatform
releaseContextReleaseContext

Returns

Promise<void>

Defined in

packages/pvm-core/lib/plugins/index.ts:71


provideClass

â–¸ provideClass(ns, rec): void

Parameters

NameType
nsstring
recPartial<Features>

Returns

void

Inherited from

PluginsApi.provideClass

Defined in

packages/pvm-core/lib/plugins/index.ts:55


provideRecord

â–¸ provideRecord(ns, rec): void

Parameters

NameType
nsstring
recPartial<Features>

Returns

void

Inherited from

PluginsApi.provideRecord

Defined in

packages/pvm-core/lib/plugins/index.ts:54


provides

â–¸ provides<K>(feature, impl): void

Type parameters

NameType
Kextends string | number

Parameters

NameType
featureK
implFeatures[K]

Returns

void

Inherited from

PluginsApi.provides

Defined in

packages/pvm-core/lib/plugins/index.ts:53


releaseInfoFromReleaseCtx

â–¸ releaseInfoFromReleaseCtx(releaseData, releaseContext): Promise<ReleaseDataExt>

Parameters

NameType
releaseDataReleaseData
releaseContextReleaseContext

Returns

Promise<ReleaseDataExt>

Defined in

packages/pvm-core/lib/plugins/index.ts:72


releaseInfoFromVcs

â–¸ releaseInfoFromVcs(releaseData, vcsRelease): Promise<ReleaseDataExt>

Parameters

NameType
releaseDataReleaseData
vcsReleaseVcsRelease

Returns

Promise<ReleaseDataExt>

Defined in

packages/pvm-core/lib/plugins/index.ts:73


releaseType

â–¸ releaseType(pkg, changedContext): Promise<PvmReleaseType>

Parameters

NameType
pkgPkg
changedContextChangedContext

Returns

Promise<PvmReleaseType>

Defined in

packages/pvm-core/lib/plugins/index.ts:70


releaseTypeByCommits

â–¸ releaseTypeByCommits(commits, defaultValue?): Promise<null | SemverReleaseType>

Parameters

NameType
commitsCommit[]
defaultValue?null | SemverReleaseType

Returns

Promise<null | SemverReleaseType>

Defined in

packages/pvm-core/lib/plugins/index.ts:69


resolve

â–¸ resolve<K>(feature): Features[K]

Type parameters

NameType
Kextends string | number

Parameters

NameType
featureK

Returns

Features[K]

Inherited from

PluginsApi.resolve

Defined in

packages/pvm-core/lib/plugins/index.ts:59


run

â–¸ run<K>(feature, ...args): ReturnType<Features[K]>

Type parameters

NameType
Kextends string | number

Parameters

NameType
featureK
...argsany[]

Returns

ReturnType<Features[K]>

Inherited from

PluginsApi.run

Defined in

packages/pvm-core/lib/plugins/index.ts:60


runOr

â–¸ runOr<K, D>(feature, defaultValue, ...args): D | ReturnType<Features[K]>

Type parameters

NameType
Kextends string | number
DD

Parameters

NameType
featureK
defaultValueD
...argsany[]

Returns

D | ReturnType<Features[K]>

Inherited from

PluginsApi.runOr

Defined in

packages/pvm-core/lib/plugins/index.ts:61