Skip to main content

@pvm/artifacts

The module provides functionality for loading and unloading release artifacts. In particular changelogs and list of releases. The module is useful if pushing to the master is disabled or versioning is built through git tags and you do not want additional commits to master.

Supported Artifact Types:

  • Changelogs
  • Release lists

Supported artifact storage types:

  • git branch in the repository

Enumerations

Classes

Interfaces

Type aliases

StorageEnumToFrontendClass

ฦฌ StorageEnumToFrontendClass<A>: A extends ReleaseList ? ReleaseListStorage : ChangelogsStorage

Type parameters

NameType
Aextends ArtifactsStorages

Defined in

packages/pvm-artifacts/lib/storage-manager.ts:15


TransferDirection

ฦฌ TransferDirection: "upload" | "download"

Defined in

packages/pvm-artifacts/pub/artifacts.ts:13

Properties

default

โ€ข default: { configExt: RecursivePartial<Config> ; factory: PluginFactory ; name: string = __filename } | { factory: PluginFactory ; name: string = __filename } | { configExt: RecursivePartial<Config> ; name: string = __filename }

Variables

cliArtifactsChoices

โ€ข cliArtifactsChoices: string[]

Defined in

packages/pvm-artifacts/cli/common.ts:3


command

โ€ข command: "download <kind>"

Defined in

packages/pvm-artifacts/cli/pvm-artifacts-download.ts:10


description

โ€ข description: "Download a given kind of artifacts from remote storage"

Defined in

packages/pvm-artifacts/cli/pvm-artifacts-download.ts:11

Functions

builder

โ–ธ Const builder(yargs): Argv<{ kind: undefined | string } & { quiet: boolean } & { force: boolean }>

Parameters

NameType
yargsArgv<Object>

Returns

Argv<{ kind: undefined | string } & { quiet: boolean } & { force: boolean }>

Defined in

packages/pvm-artifacts/cli/pvm-artifacts-download.ts:12


download

โ–ธ download(args): Promise<void>

Parameters

NameType
argsArtifactsTransferArgs

Returns

Promise<void>

Defined in

packages/pvm-artifacts/pub/artifacts.ts:56


handler

โ–ธ Const handler(args): Promise<void>

Parameters

NameType
argsRecord<string, any>

Returns

Promise<void>

Defined in

packages/pvm-artifacts/cli/pvm-artifacts-download.ts:31


instatiateStorage

โ–ธ instatiateStorage<S>(StorageKlass, deps, storageDef): Promise<InstanceType<S>>

Type parameters

NameType
Sextends typeof Storage

Parameters

NameType
StorageKlassS
depsInitStorageDeps
storageDefStorageDef

Returns

Promise<InstanceType<S>>

Defined in

packages/pvm-artifacts/lib/storage.ts:119


transfer

โ–ธ transfer(__args, direction): Promise<void>

Parameters

NameType
__argsArtifactsTransferArgs
directionTransferDirection

Returns

Promise<void>

Defined in

packages/pvm-artifacts/pub/artifacts.ts:15


upload

โ–ธ upload(args): Promise<void>

Parameters

NameType
argsArtifactsTransferArgs

Returns

Promise<void>

Defined in

packages/pvm-artifacts/pub/artifacts.ts:52