1.2.0 • Published 6 years ago

@bb-cli/lib-package v1.2.0

Weekly downloads
3,213
License
SEE LICENSE IN LI...
Repository
-
Last release
6 years ago

Modules

Functions

Typedefs

@bb-cli/lib-package : object

Packaging methods for creating provisioned packages for CXP

Example
Basic Example

import { packageCxpStatics, packageCxpStaticsDir } from '@bb-cli/bb-package';

extractInnerPackage(extractTo) ⇒ Array.<CXPItem>

Kind: global function

ParamType
extractTostring

isUnzippedFile(item) ⇒ Boolean

Kind: global function

ParamType
itemUnzipItem

readInnerZips(unzipped) ⇒ Array.<string>

Kind: global function
Returns: Array.<string> - zip files

ParamType
unzippedArray.<UnzipItem>

readManifestCatalogItems(manifestFile) ⇒ Array.<string>

Kind: global function
Returns: Array.<string> - zip files

ParamTypeDescription
manifestFilestringAbsolute path to manifest file

filterCatalogZips(extractTo, unzipped) ⇒ Array.<string>

Kind: global function
Returns: Array.<string> - zip files

ParamTypeDescription
extractToStringAbolute path to dir that was unzipped into
unzippedArray.<UnzipItem>

CxpStaticsPackage : Object

An object that describes a CXP statics package.

Kind: global typedef
Properties

NameTypeDescription
filenamestringThe filename of the package.
filesArray.<string>The files in the package.

CxpStaticsDir : Object

An object that describes a CXP statics directory.

Kind: global typedef
Properties

NameTypeDescription
dirstringThe directory.
filesArray.<string>The files in the directory.

ProvisionPackage : Object

An object that describes a provisioned package.

Kind: global typedef
Properties

NameTypeDescription
filenamestringThe filename of the provisioned package.
cxpItemsArray.<ProvisionItem>The CXP items in the package.

ProvisionItem : Object

A object that describes a CXPItem that has been packaged.

Kind: global typedef
Extends: CXPItem
Properties

NameTypeDescription
zipstringThe path to the zipped dist.

CXPItem : Object

An object that describes a catalog item in CXP Manager.

Kind: global typedef
Properties

NameTypeDescription
namestringThe CXP item name.
typestringThe CXP item type.
versionstringThe CXP item version.
srcDirstringThe path to the item's source on the file system.

~UnzipItem : Object

Kind: inner typedef
Properties

NameTypeDescription
deflatedStringOptional name of the unzipped file (not set for directories)