Interface: HostApi
@pvm/core.HostApi
Hierarchy
↳
HostApi
Properties
cwd
• cwd: string
Inherited from
Defined in
packages/pvm-core/lib/plugins/index.ts:52
features
• features: Object
Type declaration
Name | Type |
---|---|
attributeReleaseData | string |
commitsToNotes | string |
notifyScriptsPath | string |
preReleaseHook | string |
releaseInfoFromReleaseCtx | string |
releaseInfoFromVcs | string |
releaseType | string |
releaseTypeBuilder | string |
releaseTypeByCommits | string |
Inherited from
Defined in
packages/pvm-core/lib/plugins/index.ts:51
Methods
addPipeline
â–¸ addPipeline<R
>(name
, fn
): void
Type parameters
Name | Type |
---|---|
R | any |
Parameters
Name | Type |
---|---|
name | string |
fn | PipelineFn <R > |
Returns
void
Inherited from
Defined in
packages/pvm-core/lib/plugins/index.ts:62
attributeReleaseData
â–¸ attributeReleaseData(releaseData
, updateState
): Promise
<ReleaseDataExt
>
Parameters
Name | Type |
---|---|
releaseData | ReleaseData |
updateState | null | UpdateState |
Returns
Promise
<ReleaseDataExt
>
Defined in
packages/pvm-core/lib/plugins/index.ts:74
commitsToNotes
â–¸ commitsToNotes(commits
, maybePkg?
): Promise
<string
>
Parameters
Name | Type |
---|---|
commits | Commit [] |
maybePkg? | void | Pkg |
Returns
Promise
<string
>
Defined in
packages/pvm-core/lib/plugins/index.ts:68
getDefaultImpl
â–¸ getDefaultImpl<K
>(feature
): Features
[K
]
Type parameters
Name | Type |
---|---|
K | extends string | number |
Parameters
Name | Type |
---|---|
feature | K |
Returns
Features
[K
]
Inherited from
Defined in
packages/pvm-core/lib/plugins/index.ts:56
getOr
â–¸ getOr<K
, D
>(feature
, defaultIml
): D
| Features
[K
]
Type parameters
Name | Type |
---|---|
K | extends string | number |
D | D |
Parameters
Name | Type |
---|---|
feature | K |
defaultIml | D |
Returns
D
| Features
[K
]
Inherited from
Defined in
packages/pvm-core/lib/plugins/index.ts:57
has
â–¸ has<K
>(feature
): boolean
Type parameters
Name | Type |
---|---|
K | extends string | number |
Parameters
Name | Type |
---|---|
feature | K |
Returns
boolean
Inherited from
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
Name | Type |
---|---|
name | string |
...args | any [] |
Returns
Promise
<any
>
Inherited from
Defined in
packages/pvm-core/lib/plugins/index.ts:64
plPipe
â–¸ plPipe<D
>(name
, initialValue
, ...args
): Promise
<any
>
Type parameters
Name |
---|
D |
Parameters
Name | Type |
---|---|
name | string |
initialValue | D |
...args | any [] |
Returns
Promise
<any
>
Inherited from
Defined in
packages/pvm-core/lib/plugins/index.ts:63
preReleaseHook
â–¸ preReleaseHook(vcs
, releaseContext
): Promise
<void
>
Parameters
Name | Type |
---|---|
vcs | VcsPlatform |
releaseContext | ReleaseContext |
Returns
Promise
<void
>
Defined in
packages/pvm-core/lib/plugins/index.ts:71
provideClass
â–¸ provideClass(ns
, rec
): void
Parameters
Name | Type |
---|---|
ns | string |
rec | Partial <Features > |
Returns
void
Inherited from
Defined in
packages/pvm-core/lib/plugins/index.ts:55
provideRecord
â–¸ provideRecord(ns
, rec
): void
Parameters
Name | Type |
---|---|
ns | string |
rec | Partial <Features > |
Returns
void
Inherited from
Defined in
packages/pvm-core/lib/plugins/index.ts:54
provides
â–¸ provides<K
>(feature
, impl
): void
Type parameters
Name | Type |
---|---|
K | extends string | number |
Parameters
Name | Type |
---|---|
feature | K |
impl | Features [K ] |
Returns
void
Inherited from
Defined in
packages/pvm-core/lib/plugins/index.ts:53
releaseInfoFromReleaseCtx
â–¸ releaseInfoFromReleaseCtx(releaseData
, releaseContext
): Promise
<ReleaseDataExt
>
Parameters
Name | Type |
---|---|
releaseData | ReleaseData |
releaseContext | ReleaseContext |
Returns
Promise
<ReleaseDataExt
>
Defined in
packages/pvm-core/lib/plugins/index.ts:72
releaseInfoFromVcs
â–¸ releaseInfoFromVcs(releaseData
, vcsRelease
): Promise
<ReleaseDataExt
>
Parameters
Name | Type |
---|---|
releaseData | ReleaseData |
vcsRelease | VcsRelease |
Returns
Promise
<ReleaseDataExt
>
Defined in
packages/pvm-core/lib/plugins/index.ts:73
releaseType
â–¸ releaseType(pkg
, changedContext
): Promise
<PvmReleaseType
>
Parameters
Name | Type |
---|---|
pkg | Pkg |
changedContext | ChangedContext |
Returns
Promise
<PvmReleaseType
>
Defined in
packages/pvm-core/lib/plugins/index.ts:70
releaseTypeByCommits
â–¸ releaseTypeByCommits(commits
, defaultValue?
): Promise
<null
| SemverReleaseType
>
Parameters
Name | Type |
---|---|
commits | Commit [] |
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
Name | Type |
---|---|
K | extends string | number |
Parameters
Name | Type |
---|---|
feature | K |
Returns
Features
[K
]
Inherited from
Defined in
packages/pvm-core/lib/plugins/index.ts:59
run
â–¸ run<K
>(feature
, ...args
): ReturnType
<Features
[K
]>
Type parameters
Name | Type |
---|---|
K | extends string | number |
Parameters
Name | Type |
---|---|
feature | K |
...args | any [] |
Returns
ReturnType
<Features
[K
]>
Inherited from
Defined in
packages/pvm-core/lib/plugins/index.ts:60
runOr
â–¸ runOr<K
, D
>(feature
, defaultValue
, ...args
): D
| ReturnType
<Features
[K
]>
Type parameters
Name | Type |
---|---|
K | extends string | number |
D | D |
Parameters
Name | Type |
---|---|
feature | K |
defaultValue | D |
...args | any [] |
Returns
D
| ReturnType
<Features
[K
]>