Find backbase catalog items on the file system
npm install @bb-cli/lib-find-backbase-itemsFinds CXP Items And Builds Sources
Array.<string>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
* _static_
* .findUnbuiltAndPrebuiltItems(unbuiltPaths, prebuiltPaths, exclude) ⇒ Promise.<FoundItems>
* _inner_
* ~CXPItem : Object
* ~FoundItems : Object
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
`` javascript${unbuiltItems.length} items to build
import { findUnbuiltAndPrebuiltItems } from '@bb-cli/lib-find-backbase-items';
findAndBuild(['.'], ['node_modules'], ['target'])
.then(({ unbuiltItems, prebuiltItems }) =>
console.log());``
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 |
Kind: inner typedef of @bb-cli/lib-find-backbase-items
Properties
| Name | Type |
| --- | --- |
| unbuiltItems | Array.<CXPItem> |
| prebuiltItems | Array.<CXPItem> |
Array.<string>Array.<string> - The files for this item Kind: global function
Returns: Array.
| Type |
| --- |
| Array.<CXPItem> |