WpwRulesExport

new WpwRulesExport(options)

Parameters:
NameTypeDescription
optionsWpwExportOptions

Extends

Members

(protected) ErrorCode

(protected) InfoCode

(protected) Msg

(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

(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

(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

(protected) _io_

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

.

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

(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

(protected) _obj_

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

.

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

(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

(protected) _rgx_

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

.

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

(protected) _str_

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

.

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

(protected) _ts_

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

.

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

(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

(protected) _www_

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

.

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

build :WpwBuild

buildOptions :WpwBuildOptionsExportConfig.<"rules">

Type:
  • WpwBuildOptionsExportConfig.<"rules">

cacheMap :Record.<WpwBuildOptionsKey, WpwCache>

Type:

compilation :WebpackCompilation

Type:
  • WebpackCompilation

compiler :WebpackCompiler

Type:
  • WebpackCompiler

(protected) disposables :Array.<IDisposable>

Type:
  • Array.<IDisposable>

(protected) disposed :boolean

Type:
  • boolean

global

hasPluginHooks :boolean|undefined

Type:
  • boolean | undefined

hookCurrent :string|undefined

Type:
  • string | undefined

hookMessages :Record.<string, {start: string, done: string, fail: string}>

Type:
  • Record.<string, {start: string, done: string, fail: string}>

(protected) initialConfig :any

cloned initial configuration object prior to any runtime modifications

.

cloned initial configuration object prior to any runtime modifications

Type:
  • any

(protected) name :string

module name

.

module name

Type:
  • string

(protected) slug :string

url/path friendly module name

.

url/path friendly module name

Type:
  • string

(protected) spmh

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

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

(protected) store :WpwCache

subtype :WpwModuleSubType

Type:
  • WpwModuleSubType

Methods

addMessage(info, ifFirstopt) → {SpmhError}

Parameters:
NameTypeAttributesDescription
infoPartial.<SpmhMessageInfo> | SpmhError
ifFirstboolean | undefined<optional>
Returns:
Type: 
SpmhError

(protected) app(build)

Parameters:
NameTypeDescription
buildWpwBuild

(protected) base(_build)

Parameters:
NameTypeDescription
_buildWpwBuild

(protected) baseDone(_build)

Parameters:
NameTypeDescription
_buildWpwBuild

(protected) doxygen(_build)

Parameters:
NameTypeDescription
_buildWpwBuild

exec(command, program, asyncopt, optionsopt) → {WpwExecResultKind.<P>}

Parameters:
NameTypeAttributesDescription
commandstring
programstring
asyncP<optional>
optionsWpwModuleExecOptions<optional>
Returns:
Type: 
WpwExecResultKind.<P>

exec2(async, options) → {WpwExecResultKind.<P>}

Parameters:
NameTypeDescription
asyncP
optionsWpwExecOptions
Returns:
Type: 
WpwExecResultKind.<P>

(protected) extjsdoc(_build)

Parameters:
NameTypeDescription
_buildWpwBuild

(protected) getErrorMessageCfg(message, codeopt, exceptionopt) → {WpwBaseMessageInfo}

Parameters:
NameTypeAttributesDescription
messagestring
codeSpmhMessageCode | null<optional>
exceptionSpmhError | WebpackError | Error | undefined<optional>
Returns:
Type: 
WpwBaseMessageInfo

getExcludes(loader, allowTestopt, allowNodeModulesopt, allowTypesopt, allowDtsopt) → {Array.<RegExp>}

Parameters:
NameTypeAttributesDescription
loader*
allowTestboolean<optional>
allowNodeModulesboolean<optional>
allowTypesboolean<optional>
allowDtsboolean<optional>
Since
  • 1.11.0
Returns:
Type: 
Array.<RegExp>

getStore(moduleKeyopt) → {WpwCache}

Parameters:
NameTypeAttributesDescription
moduleKeyWpwBuildOptionsKey<optional>
Returns:
Type: 
WpwCache

hashLength() → {number}

Since
  • 1.10.1
Returns:
Type: 
number

hookdone(msgopt, rtnopt) → {T}

Parameters:
NameTypeAttributesDescription
msgstring | number<optional>
rtnT<optional>
Since
  • 1.11.0
Returns:
Type: 
T

hookstart(msgopt, writePluginOptsopt) → {WpwLogger}

Parameters:
NameTypeAttributesDescription
msgstring | number<optional>
writePluginOptsboolean<optional>
Since
  • 1.11.0
Returns:
Type: 
WpwLogger

(protected) invalidHookConfig(hookName, hookType, configDsc) → {SpmhMessage}

Parameters:
NameTypeDefaultDescription
hookNamestring
hookType"compiler" | "compilation"compilation
configDscstringasync/sync
Returns:
Type: 
SpmhMessage

isAsyncHook(hook)

Parameters:
NameTypeDescription
hookany

(protected) isCompilationHook(hook)

Parameters:
NameTypeDescription
hookany

(protected) isSyncHook(hook, strictopt)

Parameters:
NameTypeAttributesDescription
hookany
strictboolean<optional>

(protected) isTapableHook(hook) → {boolean}

Parameters:
NameTypeDescription
hookWpwWebpackCompilerHook | WebpackCompilationHookName
Returns:

hook is WebpackHook

Type: 
boolean

(protected) jsdoc(_build)

The jsdoc module is a WpwBaseTaskPlugin type module, using a virtual file so that
Webpack runs through it's normal process as if it going to bundle ts/js code.

The jsdoc module is a WpwBaseTaskPlugin type module, using a virtual file so that
Webpack runs through it's normal process as if it going to bundle ts/js code. This scenario
is used when the build really isn't a Webpack bundling, but more of something that usually
a task runner would handle, e.g this jsdoc build or the types build. They are implemented
here in an effort to condense all tasks to Webpack only, where something like Gulp, Grunt, Ant,
etc is not needed, especially for several smaller projects.

Parameters:
NameTypeDescription
_buildWpwBuild
Throws:
SpmhError

(protected) lib(build)

Parameters:
NameTypeDescription
buildWpwBuild

(protected) plugin(build)

Parameters:
NameTypeDescription
buildWpwBuild

(protected) resource(_build)

Parameters:
NameTypeDescription
_buildWpwBuild

(protected) schema(_build)

Parameters:
NameTypeDescription
_buildWpwBuild

(protected) script(_build)

Parameters:
NameTypeDescription
_buildWpwBuild

(protected) tapCompilationHooks(optionsArray)

Parameters:
NameTypeDescription
optionsArrayArray.<WpwPluginCompilationTapOptionsPair.<any, any, boolean>>

(protected) tests(build)

Parameters:
NameTypeDescription
buildWpwBuild

(protected) types(build)

The types module is a WpwBaseTaskPlugin type module, using a virtual file so that
Webpack runs through it's normal process as if it going to bundle ts/js code.

The types module is a WpwBaseTaskPlugin type module, using a virtual file so that
Webpack runs through it's normal process as if it going to bundle ts/js code. This scenario
is used when the build really isn't a Webpack bundling, but more of something that usually
a task runner would handle, e.g this types build or the jsdoc build. They are implemented
here in an effort to condense all tasks to Webpack only, where something like Gulp, Grunt, Ant,
etc is not needed, especially for several smaller projects.

Parameters:
NameTypeDescription
buildWpwBuild

(protected) webapp(build)

Parameters:
NameTypeDescription
buildWpwBuild