@bb-cli/webpack-build

Libs For Building Frontend Code

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@bb-cli/webpack-build
1.6.15 years ago8 years agoMinified + gzip package size for @bb-cli/webpack-build in KB

Readme

Modules

@bb-cli/webpack-build : Object

Lib for building frontend code for Backbase Architecture

Functions

build(items, items, output, plugins)Promise.<Array.<BuiltItem>>

Build CXP items with webpack.

theme()
buildConfig(items, items, output, plugins)Object

Get a webpack config suitable for building Backbase items with webpack


@bb-cli/webpack-build : Object

Lib for building frontend code for Backbase Architecture
Example
import build { config } from '@bb-cli/webpack-build';

* [~BuiltItem](#module_@bb-cli/webpack-build..BuiltItem) : <code>Object</code>
* [~CXPItem](#module_@bb-cli/webpack-build..CXPItem) : <code>Object</code>

@bb-cli/webpack-build~BuiltItem : Object

A object that describes an item that has been compiled.
Kind: inner typedef of @bb-cli/webpack-build
Extends: CXPItem
Properties
| Name | Type | Description | | --- | --- | --- | | distDir | string | The path to the built code on the file system. |

@bb-cli/webpack-build~CXPItem : Object

An object that describes a catalog item in CXP Manager.
Kind: inner typedef of @bb-cli/webpack-build
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. |

build(items, items, output, plugins) ⇒ Promise.<Array.<BuiltItem>>

Build CXP items with webpack.
Kind: global function
Since: 0.3.0
| Param | Type | Description | | --- | --- | --- | | items | Array.<CXPItem> | Items to build | | items | Array.<CXPItem> | Items that are already built (dependencies) | | output | string | Path to build in (will be ${output}/${item.name}/...) | | plugins | Array.<string> | List of node modules or files to load as config plugins. |

theme()

Kind: global function

buildConfig(items, items, output, plugins) ⇒ Object

Get a webpack config suitable for building Backbase items with webpack
Kind: global function
Returns: Object - config Webpack config
Since: 0.3.0
| Param | Type | Description | | --- | --- | --- | | items | Array.<CXPItem> | Items to build | | items | Array.<CXPItem> | Items that are already built (dependencies) | | output | string | Path to build in (will be ${output}/${item.name}/...) | | plugins | Array.<string> | List of node modules or files to load as config plugins. |