1.3.0 • Published 6 years ago

@bb-cli/find-and-build v1.3.0

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

Modules

@bb-cli/find-and-build

Finds CXP Items And Builds Sources

@bb-cli/find-and-build.buildToDir(unbuiltPaths, builtPaths, exclude, outputDir, plugins) ⇒ Promise.<Array.<CXPItem>>

Find unbuilt items, and prebuilt items. Build the unbuilt ones, merge them with the prebuilt ones and return them.

Kind: static method of @bb-cli/find-and-build
Returns: Promise.<Array.<CXPItem>> - Array of items built

ParamTypeDescription
unbuiltPathsArray.<string>Paths to unbuilt sources
builtPathsArray.<string>Array of paths to pre-built sources
excludeArray.<string>Array of paths to exclude from packaging
outputDirstringFile system path to output built items to
pluginsArray.<string>Array of paths/node modules to use as build plugins

Example

import { buildToDir } from '@bb-cli/find-and-build';
buildToDir(['.'], ['node_modules'], ['target'], 'target/build', ['sass'])
  .then(items => console.log(`${items.length} items`));

@bb-cli/find-and-build~CXPItem : Object

An object that describes a catalog item in CXP Manager.

Kind: inner typedef of @bb-cli/find-and-build
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.
distDirstringThe path to the built code on the file system, if it was built.
filesArray.<string>The files for this item

@bb-cli/find-and-build~FoundItems : Object

An object that describes found CXP items.

Kind: inner typedef of @bb-cli/find-and-build
Properties

NameType
unbuiltItemsArray.<CXPItem>
prebuiltItemsArray.<CXPItem>

default ⇒ Promise.<Array.<CXPItem>>

Deprecated

Find unbuilt items, and prebuilt items. Build the unbuilt ones, merge them with the prebuilt ones and return them.

Returns: Promise.<Array.<CXPItem>> - Array of items built

ParamTypeDescription
unbuiltPathsArray.<string>Paths to unbuilt sources
builtPathsArray.<string>Array of paths to pre-built sources
excludeArray.<string>Array of paths to exclude from packaging
pluginsArray.<string>Array of paths/node modules to use as build plugins

Example

import findAndBuild from '@bb-cli/find-and-build';
findAndBuild(['.'], ['node_modules'], ['target'], ['sass'])
  .then(items => console.log(`${items.length} items`));
1.3.0

6 years ago

1.2.3

6 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

1.0.0-pr.1

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago