WpwWrapper

new WpwWrapper(cli, wp)

Parameters:
NameTypeDescription
cliWpwCmdLineArgs
wpWebpackType
Implements
  • IWpwSchema

Extends

Members

$schema :string

Type:
  • string

(protected) ErrorCode

(protected) InfoCode

(protected) Msg

Overrides

(protected) MsgCode

(protected) WarningCode

(protected) _arr_

Utility shortcut to @spmhome/type-utils/array set of functions

.

Utility shortcut to @spmhome/type-utils/array set of functions

Overrides

(protected) _async_

Utility shortcut to @spmhome/cmn-utils/path set of functions

.

Utility shortcut to @spmhome/cmn-utils/path set of functions

(protected) _cmn_

Utility shortcut to @spmhome/cmn-utils/path set of functions

.

Utility shortcut to @spmhome/cmn-utils/path set of functions

Overrides

_config :IWpwSchema

Type:
  • IWpwSchema

(protected) _crypto_

Utility shortcut to @spmhome/type-utils/crypto set of functions

.

Utility shortcut to @spmhome/type-utils/crypto set of functions

(protected) _date_

Utility shortcut to @spmhome/type-utils/date set of functions

.

Utility shortcut to @spmhome/type-utils/date set of functions

(protected) _fs_

Utility shortcut to @spmhome/cmn-utils/fs set of functions

.

Utility shortcut to @spmhome/cmn-utils/fs set of functions

Overrides

(protected) _io_

Utility shortcut to @spmhome/cmn-utils/io set of functions

.

Utility shortcut to @spmhome/cmn-utils/io set of functions

Overrides

(protected) _json_

Utility shortcut to @spmhome/type-utils/json set of functions

.

Utility shortcut to @spmhome/type-utils/json set of functions

(protected) _mime_

Utility shortcut to @spmhome/type-utils/mime set of functions

.

Utility shortcut to @spmhome/type-utils/mime set of functions

(protected) _node_

Utility shortcut to @spmhome/cmn-utils/node set of functions

.

Utility shortcut to @spmhome/cmn-utils/node set of functions

(protected) _num_

Utility shortcut to @spmhome/type-utils/number set of functions

.

Utility shortcut to @spmhome/type-utils/number set of functions

Overrides

(protected) _obj_

Utility shortcut to @spmhome/type-utils/object set of functions

.

Utility shortcut to @spmhome/type-utils/object set of functions

Overrides

(protected) _path_

Utility shortcut to @spmhome/cmn-utils/path set of functions

.

Utility shortcut to @spmhome/cmn-utils/path set of functions

(protected) _pms_

Utility shortcut to @spmhome/type-utils/promise set of functions

.

Utility shortcut to @spmhome/type-utils/promise set of functions

Overrides

(protected) _rgx_

Utility shortcut to @spmhome/type-utils/regex set of functions

.

Utility shortcut to @spmhome/type-utils/regex set of functions

Overrides

_schema :SpmhSchema

Type:
  • SpmhSchema

_schemaVersion :VersionString

Type:
  • VersionString

(protected) _str_

Utility shortcut to @spmhome/type-utils/string set of functions

.

Utility shortcut to @spmhome/type-utils/string set of functions

Overrides

(protected) _ts_

Utility shortcut to @spmhome/cmn-utils/ts set of functions

.

Utility shortcut to @spmhome/cmn-utils/ts set of functions

Overrides

(protected) _types_

Utility shortcut to @spmhome/type-utils/type set of functions

.

Utility shortcut to @spmhome/type-utils/type set of functions

(protected) _ver_

Utility shortcut to @spmhome/cmn-utils/version set of functions

.

Utility shortcut to @spmhome/cmn-utils/version set of functions

Overrides

(protected) _www_

Utility shortcut to @spmhome/cmn-utils/fetch set of functions

.

Utility shortcut to @spmhome/cmn-utils/fetch set of functions

Overrides

autoConfig :boolean

Type:
  • boolean

buildConfigs :Array.<IWpwBuildConfig>

Type:
  • Array.<IWpwBuildConfig>

builds :Array.<WpwBuild>

Type:

cliWp :WebpackRuntimeArgs

Type:
  • WebpackRuntimeArgs

crypto :WpwCrypto

Type:
  • WpwCrypto

development :WpwBuildEnvironmentConfig

Type:
  • WpwBuildEnvironmentConfig

(protected) disposables :Array.<IDisposable>

Type:
  • Array.<IDisposable>

(protected) disposed :boolean

Type:
  • boolean

global

(protected) initialConfig :any

cloned initial configuration object prior to any runtime modifications

.

cloned initial configuration object prior to any runtime modifications

Type:
  • any

log :WpwLogOptions

Type:
  • WpwLogOptions

mode :WpwWebpackMode

Type:
  • WpwWebpackMode

(protected) name :string

module name

.

module name

Type:
  • string
Overrides

options :WpwBuildOptions

Type:
  • WpwBuildOptions

paths :WpwRcPaths

Type:
  • WpwRcPaths

production :WpwBuildEnvironmentConfig

Type:
  • WpwBuildEnvironmentConfig

settings :WpwGlobalSettings

Type:
  • WpwGlobalSettings

(protected) slug :string

url/path friendly module name

.

url/path friendly module name

Type:
  • string
Overrides

source :IWpwSourceCodeConfig

Type:
  • IWpwSourceCodeConfig

(protected) spmh

Top level export of spmh shared library packages ...{ cls, type, util }...

Top level export of spmh shared library packages ...{ cls, type, util }...

Overrides

test :WpwBuildEnvironmentConfig

Builds in 'test' mode, i.e.

Builds in 'test' mode, i.e. 'none'

Type:
  • WpwBuildEnvironmentConfig

Methods

(async) createBuilds() → {Promise.<Array.<WpwBuild>>}

Returns:
Type: 
Promise.<Array.<WpwBuild>>

dispose()

getBuild(nameOrType, isNameopt) → {WpwBuild|undefined}

Parameters:
NameTypeAttributesDescription
nameOrTypestring
isNameboolean<optional>
Returns:
Type: 
WpwBuild | undefined

getBuildConfig(nameOrType, isNameopt) → {IWpwBuildConfig|undefined}

Parameters:
NameTypeAttributesDescription
nameOrTypestring
isNameboolean<optional>
Returns:
Type: 
IWpwBuildConfig | undefined

getBuildConfigBy(cb, thisArg)

Parameters:
NameTypeDescription
cbfunction
thisArgany

getRootPathsConfig(webopt) → {IWpwRcPaths}

Parameters:
NameTypeAttributesDescription
webboolean<optional>
Returns:
Type: 
IWpwRcPaths

getRootSrcPath(webopt) → {string}

Parameters:
NameTypeAttributesDescription
webboolean<optional>
Returns:
Type: 
string

handleInitFailure(e)

Parameters:
NameTypeDescription
eError

syncLogConfigs(keepMaxLineopt, toInstanceopt) → {WpwLogger}

Parameters:
NameTypeAttributesDescription
keepMaxLineboolean<optional>
toInstanceboolean<optional>
Returns:
Type: 
WpwLogger

(async, static) create(cli, wp)

Application entry point to a cli / startup

.

Application entry point to a cli / startup

Parameters:
NameTypeDescription
cliWpwCmdLineArgs
wpWebpackType