BDConfig

Class which represents the data contained within a specific Badger Den config file. E.g. './rollup-config-badger-den.bd.json'.

Constructor

new BDConfig(profileURI, namespaceopt)

Generate manifest data

Parameters:
NameTypeAttributesDefaultDescription
profileURIstring
namespacestring<optional>
'config'

Top level namespace for which all fields inside the declared den config file are available in source code as '%namespace.path.to.field%'.

Methods

build(forceopt)

Parses the loaded bd config, constructing and caching the module manifest data, as well as the namespace replacements.

Parameters:
NameTypeAttributesDefaultDescription
forceboolean<optional>
false
Returns:

Object

load(profileURI) → {Object}

Reads declared config file and preparing neccessary data for module building operations.

Parameters:
NameTypeDescription
profileURIstring
Returns:
Type: 
Object