WpwBuild

new WpwBuild(wpw, wp, config)

Parameters:
NameTypeDescription
wpwWpwWrapper
wpWebpackType
configIWpwBuildConfig
Implements
  • IWpwBuildConfig

Extends

Members

(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

(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

_ssCache :WpwSnapshotService

(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

crypto :WpwCrypto

Type:
  • WpwCrypto

debug :boolean

Type:
  • boolean

(protected) disposables :Array.<IDisposable>

Type:
  • Array.<IDisposable>

(protected) disposed :boolean

Type:
  • boolean

entry :WpwWebpackEntry

Type:
  • WpwWebpackEntry

getBasePath

getBuild

getBuildConfig

getBuildConfigBy

getContextPath

getDistPath

getRootBasePath

getRootCtxPath

getRootDistPath

getRootSrcPath

getSrcPath

getSrcPathRegExp

getTempPath

global

(protected) initialConfig :any

cloned initial configuration object prior to any runtime modifications

.

cloned initial configuration object prior to any runtime modifications

Type:
  • any

library :WebpackLibrary|undefined

Type:
  • WebpackLibrary | undefined

loader :WpwWebpackLoaderType|undefined

Type:
  • WpwWebpackLoaderType | undefined

log :WpwLogOptions

Type:
  • WpwLogOptions

logger :WpwLogger

main :boolean|undefined

Type:
  • boolean | undefined

mode :WpwWebpackMode

Type:
  • WpwWebpackMode

(protected) name :string

module name

.

module name

Type:
  • string
Overrides

options :WpwBuildOptions

Type:
  • WpwBuildOptions

paths :WpwRcPaths

Type:
  • WpwRcPaths

resources :WpwStaticResources

Type:
  • WpwStaticResources

(protected) slug :string

url/path friendly module name

.

url/path friendly module name

Type:
  • string
Overrides

(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

target :WebpackTarget|Array.<WebpackTarget>

Type:
  • WebpackTarget | Array.<WebpackTarget>

type :WpwBuildType

Type:
  • WpwBuildType

virtualEntry :WpwVirtualEntry

Type:
  • WpwVirtualEntry

Methods

addMessage(info, ifFirstopt) → {SpmhError}

Parameters:
NameTypeAttributesDescription
infoSpmhMessageInfo | Error
ifFirstboolean<optional>
Returns:
Type: 
SpmhError

addSuggestion(info, ifFirstopt) → {SpmhMessage}

Parameters:
NameTypeAttributesDescription
infoSpmhSuggestionInfo
ifFirstboolean<optional>
Returns:
Type: 
SpmhMessage

dispose()

getContentHash(source) → {string}

Parameters:
NameTypeDescription
sourceWebpackSource
Returns:

string

Type: 
string

getEmitRelPath(path, basePathopt) → {string}

Parameters:
NameTypeAttributesDescription
pathstring

path to file

basePathstring<optional>

path base relative from

Returns:

relative path to file, root @ context directtory

Type: 
string

(async) init(lPad) → {Promise.<WpwBuild>}

Parameters:
NameTypeDescription
lPadstring
Returns:
Type: 
Promise.<WpwBuild>

printMessageQ(lPad, seeDetailsClropt, newFnopt, newMsgopt)

Parameters:
NameTypeAttributesDescription
lPadstring | null
seeDetailsClrWpwLogColor | SpmhLogColorValue<optional>
newFn"error" | "info" | "warn"<optional>
newMsgstring<optional>

printMessages(failedopt)

Parameters:
NameTypeAttributesDescription
failedboolean<optional>

pushImportedModule(info) → {Array.<IWpwRuntimeExternal>}

Parameters:
NameTypeDescription
infoIWpwRuntimeExternal
Returns:
Type: 
Array.<IWpwRuntimeExternal>