0.2.0 - Mid migration

This commit is contained in:
Daniel Mason 2022-04-25 14:47:15 +12:00
parent 139e6a915e
commit 7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions

1458
web/node_modules/webpack/declarations/WebpackOptions.d.ts generated vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,49 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export type BannerPluginArgument =
| BannerPluginOptions
| BannerFunction
| string;
/**
* The banner as function, it will be wrapped in a comment
*/
export type BannerFunction = (data: {
hash: string;
chunk: import("../../lib/Chunk");
filename: string;
basename: string;
query: string;
}) => string;
export type Rules = Rule[] | Rule;
export type Rule = RegExp | string;
export interface BannerPluginOptions {
/**
* Specifies the banner
*/
banner: BannerFunction | string;
/**
* If true, the banner will only be added to the entry chunks
*/
entryOnly?: boolean;
/**
* Exclude all modules matching any of these conditions
*/
exclude?: Rules;
/**
* Include all modules matching any of these conditions
*/
include?: Rules;
/**
* If true, banner will not be wrapped in a comment
*/
raw?: boolean;
/**
* Include all modules that pass test assertion
*/
test?: Rules;
}

View file

@ -0,0 +1,32 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export interface DllPluginOptions {
/**
* Context of requests in the manifest file (defaults to the webpack context)
*/
context?: string;
/**
* If true, only entry points will be exposed
*/
entryOnly?: boolean;
/**
* If true, manifest json file (output) will be formatted
*/
format?: boolean;
/**
* Name of the exposed dll function (external name, use value of 'output.library')
*/
name?: string;
/**
* Absolute path to the manifest json file (output)
*/
path: string;
/**
* Type of the dll bundle (external type, use value of 'output.libraryTarget')
*/
type?: string;
}

View file

@ -0,0 +1,126 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export type DllReferencePluginOptions =
| {
/**
* (absolute path) context of requests in the manifest (or content property)
*/
context?: string;
/**
* Extensions used to resolve modules in the dll bundle (only used when using 'scope')
*/
extensions?: string[];
/**
* An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation
*/
manifest: DllReferencePluginOptionsManifest | string;
/**
* The name where the dll is exposed (external name, defaults to manifest.name)
*/
name?: string;
/**
* Prefix which is used for accessing the content of the dll
*/
scope?: string;
/**
* How the dll is exposed (libraryTarget, defaults to manifest.type)
*/
sourceType?: DllReferencePluginOptionsSourceType;
/**
* The way how the export of the dll bundle is used
*/
type?: "require" | "object";
}
| {
/**
* The mappings from request to module info
*/
content: DllReferencePluginOptionsContent;
/**
* (absolute path) context of requests in the manifest (or content property)
*/
context?: string;
/**
* Extensions used to resolve modules in the dll bundle (only used when using 'scope')
*/
extensions?: string[];
/**
* The name where the dll is exposed (external name)
*/
name: string;
/**
* Prefix which is used for accessing the content of the dll
*/
scope?: string;
/**
* How the dll is exposed (libraryTarget)
*/
sourceType?: DllReferencePluginOptionsSourceType;
/**
* The way how the export of the dll bundle is used
*/
type?: "require" | "object";
};
/**
* The type how the dll is exposed (external type)
*/
export type DllReferencePluginOptionsSourceType =
| "var"
| "assign"
| "this"
| "window"
| "global"
| "commonjs"
| "commonjs2"
| "commonjs-module"
| "amd"
| "amd-require"
| "umd"
| "umd2"
| "jsonp";
/**
* An object containing content, name and type
*/
export interface DllReferencePluginOptionsManifest {
/**
* The mappings from request to module info
*/
content: DllReferencePluginOptionsContent;
/**
* The name where the dll is exposed (external name)
*/
name?: string;
/**
* The type how the dll is exposed (external type)
*/
type?: DllReferencePluginOptionsSourceType;
}
/**
* The mappings from request to module info
*/
export interface DllReferencePluginOptionsContent {
/**
* Module info
*/
[k: string]: {
/**
* Meta information about the module
*/
buildMeta?: {
[k: string]: any;
};
/**
* Information about the provided exports of the module
*/
exports?: true | string[];
/**
* Module ID
*/
id: number | string;
};
}

View file

@ -0,0 +1,24 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export interface HashedModuleIdsPluginOptions {
/**
* The context directory for creating names.
*/
context?: string;
/**
* The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.
*/
hashDigest?: "hex" | "latin1" | "base64";
/**
* The prefix length of the hash digest to use, defaults to 4.
*/
hashDigestLength?: number;
/**
* The hashing algorithm to use, defaults to 'md5'. All functions from Node.JS' crypto.createHash are supported.
*/
hashFunction?: string;
}

View file

@ -0,0 +1,27 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export type IgnorePluginOptions =
| {
/**
* A RegExp to test the context (directory) against
*/
contextRegExp?: RegExp;
/**
* A RegExp to test the request against
*/
resourceRegExp?: RegExp;
}
| {
/**
* A filter function for context
*/
checkContext?: (context: string) => boolean;
/**
* A filter function for resource and context
*/
checkResource?: (resource: string, context: string) => boolean;
};

View file

@ -0,0 +1,27 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export interface LoaderOptionsPluginOptions {
/**
* Whether loaders should be in debug mode or not. debug will be removed as of webpack 3
*/
debug?: boolean;
/**
* Where loaders can be switched to minimize mode
*/
minimize?: boolean;
/**
* A configuration object that can be used to configure older loaders
*/
options?: {
/**
* The context that can be used to configure older loaders
*/
context?: string;
[k: string]: any;
};
[k: string]: any;
}

View file

@ -0,0 +1,42 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export type ProgressPluginArgument = ProgressPluginOptions | HandlerFunction;
/**
* Function that executes for every progress step
*/
export type HandlerFunction = (
percentage: number,
msg: string,
...args: string[]
) => void;
export interface ProgressPluginOptions {
/**
* Show active modules count and one active module in progress message
*/
activeModules?: boolean;
/**
* Show entries count in progress message
*/
entries?: boolean;
/**
* Function that executes for every progress step
*/
handler?: HandlerFunction;
/**
* Show modules count in progress message
*/
modules?: boolean;
/**
* Minimum modules count to start with. Only for mode=modules. Default: 500
*/
modulesCount?: number;
/**
* Collect profile data for progress steps. Default: false
*/
profile?: true | false | null;
}

View file

@ -0,0 +1,94 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
/**
* This interface was referenced by `SourceMapDevToolPluginOptions`'s JSON-Schema
* via the `definition` "rules".
*/
export type Rules = Rule[] | Rule;
/**
* This interface was referenced by `SourceMapDevToolPluginOptions`'s JSON-Schema
* via the `definition` "rule".
*/
export type Rule = RegExp | string;
export interface SourceMapDevToolPluginOptions {
/**
* Appends the given value to the original asset. Usually the #sourceMappingURL comment. [url] is replaced with a URL to the source map file. false disables the appending
*/
append?: (false | null) | string;
/**
* Indicates whether column mappings should be used (defaults to true)
*/
columns?: boolean;
/**
* Exclude modules that match the given value from source map generation
*/
exclude?: Rules;
/**
* Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap used only if 'moduleFilenameTemplate' would result in a conflict
*/
fallbackModuleFilenameTemplate?: Function | string;
/**
* Path prefix to which the [file] placeholder is relative to
*/
fileContext?: string;
/**
* Defines the output filename of the SourceMap (will be inlined if no value is provided)
*/
filename?: (false | null) | string;
/**
* Include source maps for module paths that match the given value
*/
include?: Rules;
/**
* (deprecated) try to map original files line to line to generated files
*/
lineToLine?:
| boolean
| {
/**
* Exclude modules that match the given value from source map generation
*/
exclude?: Rules;
/**
* Include source maps for module paths that match the given value
*/
include?: Rules;
/**
* Include source maps for modules based on their extension (defaults to .js and .css)
*/
test?: Rules;
};
/**
* Indicates whether SourceMaps from loaders should be used (defaults to true)
*/
module?: boolean;
/**
* Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap
*/
moduleFilenameTemplate?: Function | string;
/**
* Namespace prefix to allow multiple webpack roots in the devtools
*/
namespace?: string;
/**
* Omit the 'sourceContents' array from the SourceMap
*/
noSources?: boolean;
/**
* Provide a custom public path for the SourceMapping comment
*/
publicPath?: string;
/**
* Provide a custom value for the 'sourceRoot' property in the SourceMap
*/
sourceRoot?: string;
/**
* Include source maps for modules based on their extension (defaults to .js and .css)
*/
test?: Rules;
}

View file

@ -0,0 +1,10 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
/**
* A list of RegExps or absolute paths to directories or files that should be ignored
*/
export type WatchIgnorePluginOptions = (string | RegExp)[];

View file

@ -0,0 +1,12 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export interface ProfilingPluginOptions {
/**
* Path to the output file e.g. `profiling/events.json`. Defaults to `events.json`.
*/
outputPath?: string;
}

View file

@ -0,0 +1,24 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export interface AggressiveSplittingPluginOptions {
/**
* Default: 0
*/
chunkOverhead?: number;
/**
* Default: 1
*/
entryChunkMultiplicator?: number;
/**
* Byte, maxsize of per file. Default: 51200
*/
maxSize?: number;
/**
* Byte, split point. Default: 30720
*/
minSize?: number;
}

View file

@ -0,0 +1,16 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export interface LimitChunkCountPluginOptions {
/**
* Limit the maximum number of chunks using a value greater greater than or equal to 1
*/
maxChunks?: number;
/**
* Set a minimum chunk size
*/
minChunkSize?: number;
}

View file

@ -0,0 +1,12 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export interface MinChunkSizePluginOptions {
/**
* Minimum number of characters
*/
minChunkSize: number;
}

View file

@ -0,0 +1,12 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export interface OccurrenceOrderChunkIdsPluginOptions {
/**
* Prioritise initial size over total size
*/
prioritiseInitial?: boolean;
}

View file

@ -0,0 +1,12 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
export interface OccurrenceOrderModuleIdsPluginOptions {
/**
* Prioritise initial size over total size
*/
prioritiseInitial?: boolean;
}