@bb-cli/lib-find-backbase-items

1.3.0 • Public • Published

Modules

@bb-cli/lib-find-backbase-items

Finds CXP Items And Builds Sources

Functions

itemFiles()Array.<string>
mergeItems()

Takes any number of arrays of CXP items and merges them all into a single array of CXP items.

@bb-cli/lib-find-backbase-items

Finds CXP Items And Builds Sources

@bb-cli/lib-find-backbase-items.findUnbuiltAndPrebuiltItems(unbuiltPaths, prebuiltPaths, exclude) ⇒ Promise.<FoundItems>

Find unbuilt items, and prebuilt items.

Kind: static method of @bb-cli/lib-find-backbase-items
Returns: Promise.<FoundItems> - Array of items found

Param Type Description
unbuiltPaths Array.<string> Paths to unbuilt sources
prebuiltPaths Array.<string> Array of paths to pre-built sources
exclude Array.<string> Array of paths to exclude from packaging

Example

import { findUnbuiltAndPrebuiltItems } from '@bb-cli/lib-find-backbase-items';
findAndBuild(['.'], ['node_modules'], ['target'])
  .then(({ unbuiltItems, prebuiltItems }) =>
    console.log(`${unbuiltItems.length} items to build`));

@bb-cli/lib-find-backbase-items~CXPItem : Object

An object that describes a catalog item in CXP Manager.

Kind: inner typedef of @bb-cli/lib-find-backbase-items
Properties

Name Type Description
name string The CXP item name.
type string The CXP item type.
version string The CXP item version.
srcDir string The path to the item's source on the file system.
distDir string The path to the built code on the file system, if it was built.
files Array.<string> The files for this item

@bb-cli/lib-find-backbase-items~FoundItems : Object

An object that describes found CXP items.

Kind: inner typedef of @bb-cli/lib-find-backbase-items
Properties

Name Type
unbuiltItems Array.<CXPItem>
prebuiltItems Array.<CXPItem>

itemFiles() ⇒ Array.<string>

Kind: global function
Returns: Array.<string> - The files for this item

mergeItems() ⇒

Takes any number of arrays of CXP items and merges them all into a single array of CXP items.

Kind: global function
Returns: Array.

Type
Array.<CXPItem>

Readme

Keywords

Package Sidebar

Install

npm i @bb-cli/lib-find-backbase-items

Weekly Downloads

147

Version

1.3.0

License

SEE LICENSE IN LICENSE

Unpacked Size

112 kB

Total Files

38

Last publish

Collaborators

  • backbase-admin
  • bb-cli