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

View file

@ -0,0 +1,101 @@
{
"definitions": {
"BannerFunction": {
"description": "The banner as function, it will be wrapped in a comment",
"instanceof": "Function",
"tsType": "(data: { hash: string, chunk: import('../../lib/Chunk'), filename: string, basename: string, query: string}) => string"
},
"Rule": {
"oneOf": [
{
"instanceof": "RegExp",
"tsType": "RegExp"
},
{
"type": "string",
"minLength": 1
}
]
},
"Rules": {
"oneOf": [
{
"type": "array",
"items": {
"description": "A rule condition",
"anyOf": [
{
"$ref": "#/definitions/Rule"
}
]
}
},
{
"$ref": "#/definitions/Rule"
}
]
}
},
"title": "BannerPluginArgument",
"oneOf": [
{
"title": "BannerPluginOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"banner": {
"description": "Specifies the banner",
"anyOf": [
{
"$ref": "#/definitions/BannerFunction"
},
{
"type": "string"
}
]
},
"entryOnly": {
"description": "If true, the banner will only be added to the entry chunks",
"type": "boolean"
},
"exclude": {
"description": "Exclude all modules matching any of these conditions",
"anyOf": [
{
"$ref": "#/definitions/Rules"
}
]
},
"include": {
"description": "Include all modules matching any of these conditions",
"anyOf": [
{
"$ref": "#/definitions/Rules"
}
]
},
"raw": {
"description": "If true, banner will not be wrapped in a comment",
"type": "boolean"
},
"test": {
"description": "Include all modules that pass test assertion",
"anyOf": [
{
"$ref": "#/definitions/Rules"
}
]
}
},
"required": ["banner"]
},
{
"$ref": "#/definitions/BannerFunction"
},
{
"description": "The banner as string, it will be wrapped in a comment",
"type": "string",
"minLength": 1
}
]
}

View file

@ -0,0 +1,36 @@
{
"title": "DllPluginOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"context": {
"description": "Context of requests in the manifest file (defaults to the webpack context)",
"type": "string",
"minLength": 1
},
"entryOnly": {
"description": "If true, only entry points will be exposed",
"type": "boolean"
},
"format": {
"description": "If true, manifest json file (output) will be formatted",
"type": "boolean"
},
"name": {
"description": "Name of the exposed dll function (external name, use value of 'output.library')",
"type": "string",
"minLength": 1
},
"path": {
"description": "Absolute path to the manifest json file (output)",
"type": "string",
"minLength": 1
},
"type": {
"description": "Type of the dll bundle (external type, use value of 'output.libraryTarget')",
"type": "string",
"minLength": 1
}
},
"required": ["path"]
}

View file

@ -0,0 +1,205 @@
{
"definitions": {
"DllReferencePluginOptionsContent": {
"description": "The mappings from request to module info",
"type": "object",
"additionalProperties": {
"description": "Module info",
"type": "object",
"additionalProperties": false,
"properties": {
"buildMeta": {
"description": "Meta information about the module",
"type": "object"
},
"exports": {
"description": "Information about the provided exports of the module",
"anyOf": [
{
"description": "Exports unknown/dynamic",
"enum": [true]
},
{
"description": "List of provided exports of the module",
"type": "array",
"items": {
"description": "Name of the export",
"type": "string",
"minLength": 1
}
}
]
},
"id": {
"description": "Module ID",
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
}
},
"required": ["id"]
},
"minProperties": 1
},
"DllReferencePluginOptionsManifest": {
"description": "An object containing content, name and type",
"type": "object",
"additionalProperties": false,
"properties": {
"content": {
"description": "The mappings from request to module info",
"anyOf": [
{
"$ref": "#/definitions/DllReferencePluginOptionsContent"
}
]
},
"name": {
"description": "The name where the dll is exposed (external name)",
"type": "string",
"minLength": 1
},
"type": {
"description": "The type how the dll is exposed (external type)",
"anyOf": [
{
"$ref": "#/definitions/DllReferencePluginOptionsSourceType"
}
]
}
},
"required": ["content"]
},
"DllReferencePluginOptionsSourceType": {
"description": "The type how the dll is exposed (external type)",
"enum": [
"var",
"assign",
"this",
"window",
"global",
"commonjs",
"commonjs2",
"commonjs-module",
"amd",
"amd-require",
"umd",
"umd2",
"jsonp"
]
}
},
"title": "DllReferencePluginOptions",
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"context": {
"description": "(absolute path) context of requests in the manifest (or content property)",
"type": "string",
"absolutePath": true
},
"extensions": {
"description": "Extensions used to resolve modules in the dll bundle (only used when using 'scope')",
"type": "array",
"items": {
"description": "An extension",
"type": "string"
}
},
"manifest": {
"description": "An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation",
"oneOf": [
{
"$ref": "#/definitions/DllReferencePluginOptionsManifest"
},
{
"type": "string",
"absolutePath": true
}
]
},
"name": {
"description": "The name where the dll is exposed (external name, defaults to manifest.name)",
"type": "string",
"minLength": 1
},
"scope": {
"description": "Prefix which is used for accessing the content of the dll",
"type": "string",
"minLength": 1
},
"sourceType": {
"description": "How the dll is exposed (libraryTarget, defaults to manifest.type)",
"anyOf": [
{
"$ref": "#/definitions/DllReferencePluginOptionsSourceType"
}
]
},
"type": {
"description": "The way how the export of the dll bundle is used",
"enum": ["require", "object"]
}
},
"required": ["manifest"]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"content": {
"description": "The mappings from request to module info",
"anyOf": [
{
"$ref": "#/definitions/DllReferencePluginOptionsContent"
}
]
},
"context": {
"description": "(absolute path) context of requests in the manifest (or content property)",
"type": "string",
"absolutePath": true
},
"extensions": {
"description": "Extensions used to resolve modules in the dll bundle (only used when using 'scope')",
"type": "array",
"items": {
"description": "An extension",
"type": "string"
}
},
"name": {
"description": "The name where the dll is exposed (external name)",
"type": "string",
"minLength": 1
},
"scope": {
"description": "Prefix which is used for accessing the content of the dll",
"type": "string",
"minLength": 1
},
"sourceType": {
"description": "How the dll is exposed (libraryTarget)",
"anyOf": [
{
"$ref": "#/definitions/DllReferencePluginOptionsSourceType"
}
]
},
"type": {
"description": "The way how the export of the dll bundle is used",
"enum": ["require", "object"]
}
},
"required": ["content", "name"]
}
]
}

View file

@ -0,0 +1,26 @@
{
"title": "HashedModuleIdsPluginOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"context": {
"description": "The context directory for creating names.",
"type": "string",
"absolutePath": true
},
"hashDigest": {
"description": "The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.",
"enum": ["hex", "latin1", "base64"]
},
"hashDigestLength": {
"description": "The prefix length of the hash digest to use, defaults to 4.",
"type": "number",
"minimum": 1
},
"hashFunction": {
"description": "The hashing algorithm to use, defaults to 'md5'. All functions from Node.JS' crypto.createHash are supported.",
"type": "string",
"minLength": 1
}
}
}

View file

@ -0,0 +1,37 @@
{
"title": "IgnorePluginOptions",
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"contextRegExp": {
"description": "A RegExp to test the context (directory) against",
"instanceof": "RegExp",
"tsType": "RegExp"
},
"resourceRegExp": {
"description": "A RegExp to test the request against",
"instanceof": "RegExp",
"tsType": "RegExp"
}
}
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"checkContext": {
"description": "A filter function for context",
"instanceof": "Function",
"tsType": "((context: string) => boolean)"
},
"checkResource": {
"description": "A filter function for resource and context",
"instanceof": "Function",
"tsType": "((resource: string, context: string) => boolean)"
}
}
}
]
}

View file

@ -0,0 +1,27 @@
{
"title": "LoaderOptionsPluginOptions",
"type": "object",
"additionalProperties": true,
"properties": {
"debug": {
"description": "Whether loaders should be in debug mode or not. debug will be removed as of webpack 3",
"type": "boolean"
},
"minimize": {
"description": "Where loaders can be switched to minimize mode",
"type": "boolean"
},
"options": {
"description": "A configuration object that can be used to configure older loaders",
"type": "object",
"additionalProperties": true,
"properties": {
"context": {
"description": "The context that can be used to configure older loaders",
"type": "string",
"absolutePath": true
}
}
}
}
}

View file

@ -0,0 +1,52 @@
{
"definitions": {
"HandlerFunction": {
"description": "Function that executes for every progress step",
"instanceof": "Function",
"tsType": "((percentage: number, msg: string, ...args: string[]) => void)"
},
"ProgressPluginOptions": {
"type": "object",
"additionalProperties": false,
"properties": {
"activeModules": {
"description": "Show active modules count and one active module in progress message",
"type": "boolean"
},
"entries": {
"description": "Show entries count in progress message",
"type": "boolean"
},
"handler": {
"description": "Function that executes for every progress step",
"anyOf": [
{
"$ref": "#/definitions/HandlerFunction"
}
]
},
"modules": {
"description": "Show modules count in progress message",
"type": "boolean"
},
"modulesCount": {
"description": "Minimum modules count to start with. Only for mode=modules. Default: 500",
"type": "number"
},
"profile": {
"description": "Collect profile data for progress steps. Default: false",
"enum": [true, false, null]
}
}
}
},
"title": "ProgressPluginArgument",
"oneOf": [
{
"$ref": "#/definitions/ProgressPluginOptions"
},
{
"$ref": "#/definitions/HandlerFunction"
}
]
}

View file

@ -0,0 +1,185 @@
{
"definitions": {
"rule": {
"oneOf": [
{
"instanceof": "RegExp",
"tsType": "RegExp"
},
{
"type": "string",
"minLength": 1
}
]
},
"rules": {
"oneOf": [
{
"type": "array",
"items": {
"description": "A rule condition",
"anyOf": [
{
"$ref": "#/definitions/rule"
}
]
}
},
{
"$ref": "#/definitions/rule"
}
]
}
},
"title": "SourceMapDevToolPluginOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"append": {
"description": "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",
"oneOf": [
{
"description": "Append no SourceMap comment to the bundle, but still generate SourceMaps",
"enum": [false, null]
},
{
"type": "string",
"minLength": 1
}
]
},
"columns": {
"description": "Indicates whether column mappings should be used (defaults to true)",
"type": "boolean"
},
"exclude": {
"description": "Exclude modules that match the given value from source map generation",
"anyOf": [
{
"$ref": "#/definitions/rules"
}
]
},
"fallbackModuleFilenameTemplate": {
"description": "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",
"oneOf": [
{
"description": "Custom function generating the identifer",
"instanceof": "Function",
"tsType": "Function"
},
{
"type": "string",
"minLength": 1
}
]
},
"fileContext": {
"description": "Path prefix to which the [file] placeholder is relative to",
"type": "string"
},
"filename": {
"description": "Defines the output filename of the SourceMap (will be inlined if no value is provided)",
"oneOf": [
{
"description": "Disable separate SourceMap file and inline SourceMap as DataUrl",
"enum": [false, null]
},
{
"type": "string",
"absolutePath": false,
"minLength": 1
}
]
},
"include": {
"description": "Include source maps for module paths that match the given value",
"anyOf": [
{
"$ref": "#/definitions/rules"
}
]
},
"lineToLine": {
"description": "(deprecated) try to map original files line to line to generated files",
"anyOf": [
{
"type": "boolean"
},
{
"description": "Simplify and speed up source mapping by using line to line source mappings for matched modules",
"type": "object",
"additionalProperties": false,
"properties": {
"exclude": {
"description": "Exclude modules that match the given value from source map generation",
"anyOf": [
{
"$ref": "#/definitions/rules"
}
]
},
"include": {
"description": "Include source maps for module paths that match the given value",
"anyOf": [
{
"$ref": "#/definitions/rules"
}
]
},
"test": {
"description": "Include source maps for modules based on their extension (defaults to .js and .css)",
"anyOf": [
{
"$ref": "#/definitions/rules"
}
]
}
}
}
]
},
"module": {
"description": "Indicates whether SourceMaps from loaders should be used (defaults to true)",
"type": "boolean"
},
"moduleFilenameTemplate": {
"description": "Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap",
"oneOf": [
{
"description": "Custom function generating the identifer",
"instanceof": "Function",
"tsType": "Function"
},
{
"type": "string",
"minLength": 1
}
]
},
"namespace": {
"description": "Namespace prefix to allow multiple webpack roots in the devtools",
"type": "string"
},
"noSources": {
"description": "Omit the 'sourceContents' array from the SourceMap",
"type": "boolean"
},
"publicPath": {
"description": "Provide a custom public path for the SourceMapping comment",
"type": "string"
},
"sourceRoot": {
"description": "Provide a custom value for the 'sourceRoot' property in the SourceMap",
"type": "string"
},
"test": {
"description": "Include source maps for modules based on their extension (defaults to .js and .css)",
"anyOf": [
{
"$ref": "#/definitions/rules"
}
]
}
}
}

View file

@ -0,0 +1,18 @@
{
"title": "WatchIgnorePluginOptions",
"description": "A list of RegExps or absolute paths to directories or files that should be ignored",
"type": "array",
"items": {
"description": "RegExp or absolute path to directories or files that should be ignored",
"oneOf": [
{
"type": "string"
},
{
"instanceof": "RegExp",
"tsType": "RegExp"
}
]
},
"minItems": 1
}

View file

@ -0,0 +1,13 @@
{
"title": "ProfilingPluginOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"outputPath": {
"description": "Path to the output file e.g. `profiling/events.json`. Defaults to `events.json`.",
"type": "string",
"absolutePath": false,
"minLength": 4
}
}
}

View file

@ -0,0 +1,23 @@
{
"title": "AggressiveSplittingPluginOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"chunkOverhead": {
"description": "Default: 0",
"type": "number"
},
"entryChunkMultiplicator": {
"description": "Default: 1",
"type": "number"
},
"maxSize": {
"description": "Byte, maxsize of per file. Default: 51200",
"type": "number"
},
"minSize": {
"description": "Byte, split point. Default: 30720",
"type": "number"
}
}
}

View file

@ -0,0 +1,16 @@
{
"title": "LimitChunkCountPluginOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"maxChunks": {
"description": "Limit the maximum number of chunks using a value greater greater than or equal to 1",
"type": "number",
"minimum": 1
},
"minChunkSize": {
"description": "Set a minimum chunk size",
"type": "number"
}
}
}

View file

@ -0,0 +1,12 @@
{
"title": "MinChunkSizePluginOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"minChunkSize": {
"description": "Minimum number of characters",
"type": "number"
}
},
"required": ["minChunkSize"]
}

View file

@ -0,0 +1,11 @@
{
"title": "OccurrenceOrderChunkIdsPluginOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"prioritiseInitial": {
"description": "Prioritise initial size over total size",
"type": "boolean"
}
}
}

View file

@ -0,0 +1,11 @@
{
"title": "OccurrenceOrderModuleIdsPluginOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"prioritiseInitial": {
"description": "Prioritise initial size over total size",
"type": "boolean"
}
}
}