From e06ec920f7a5d784e674c4c4b4e6d1da3dc7391d Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Mon, 16 Nov 2020 00:10:28 +0100 Subject: api, login, auth --- .../webpack/schemas/plugins/BannerPlugin.json | 101 ++++++++++ .../webpack/schemas/plugins/DllPlugin.json | 36 ++++ .../schemas/plugins/DllReferencePlugin.json | 205 +++++++++++++++++++++ .../schemas/plugins/HashedModuleIdsPlugin.json | 26 +++ .../webpack/schemas/plugins/IgnorePlugin.json | 37 ++++ .../schemas/plugins/LoaderOptionsPlugin.json | 27 +++ .../webpack/schemas/plugins/ProgressPlugin.json | 52 ++++++ .../schemas/plugins/SourceMapDevToolPlugin.json | 185 +++++++++++++++++++ .../webpack/schemas/plugins/WatchIgnorePlugin.json | 18 ++ .../schemas/plugins/debug/ProfilingPlugin.json | 13 ++ .../optimize/AggressiveSplittingPlugin.json | 23 +++ .../plugins/optimize/LimitChunkCountPlugin.json | 16 ++ .../plugins/optimize/MinChunkSizePlugin.json | 12 ++ .../optimize/OccurrenceOrderChunkIdsPlugin.json | 11 ++ .../optimize/OccurrenceOrderModuleIdsPlugin.json | 11 ++ 15 files changed, 773 insertions(+) create mode 100644 node_modules/webpack/schemas/plugins/BannerPlugin.json create mode 100644 node_modules/webpack/schemas/plugins/DllPlugin.json create mode 100644 node_modules/webpack/schemas/plugins/DllReferencePlugin.json create mode 100644 node_modules/webpack/schemas/plugins/HashedModuleIdsPlugin.json create mode 100644 node_modules/webpack/schemas/plugins/IgnorePlugin.json create mode 100644 node_modules/webpack/schemas/plugins/LoaderOptionsPlugin.json create mode 100644 node_modules/webpack/schemas/plugins/ProgressPlugin.json create mode 100644 node_modules/webpack/schemas/plugins/SourceMapDevToolPlugin.json create mode 100644 node_modules/webpack/schemas/plugins/WatchIgnorePlugin.json create mode 100644 node_modules/webpack/schemas/plugins/debug/ProfilingPlugin.json create mode 100644 node_modules/webpack/schemas/plugins/optimize/AggressiveSplittingPlugin.json create mode 100644 node_modules/webpack/schemas/plugins/optimize/LimitChunkCountPlugin.json create mode 100644 node_modules/webpack/schemas/plugins/optimize/MinChunkSizePlugin.json create mode 100644 node_modules/webpack/schemas/plugins/optimize/OccurrenceOrderChunkIdsPlugin.json create mode 100644 node_modules/webpack/schemas/plugins/optimize/OccurrenceOrderModuleIdsPlugin.json (limited to 'node_modules/webpack/schemas/plugins') diff --git a/node_modules/webpack/schemas/plugins/BannerPlugin.json b/node_modules/webpack/schemas/plugins/BannerPlugin.json new file mode 100644 index 0000000..af313b9 --- /dev/null +++ b/node_modules/webpack/schemas/plugins/BannerPlugin.json @@ -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 + } + ] +} diff --git a/node_modules/webpack/schemas/plugins/DllPlugin.json b/node_modules/webpack/schemas/plugins/DllPlugin.json new file mode 100644 index 0000000..18d7dee --- /dev/null +++ b/node_modules/webpack/schemas/plugins/DllPlugin.json @@ -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"] +} diff --git a/node_modules/webpack/schemas/plugins/DllReferencePlugin.json b/node_modules/webpack/schemas/plugins/DllReferencePlugin.json new file mode 100644 index 0000000..1e078b9 --- /dev/null +++ b/node_modules/webpack/schemas/plugins/DllReferencePlugin.json @@ -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"] + } + ] +} diff --git a/node_modules/webpack/schemas/plugins/HashedModuleIdsPlugin.json b/node_modules/webpack/schemas/plugins/HashedModuleIdsPlugin.json new file mode 100644 index 0000000..c4592ea --- /dev/null +++ b/node_modules/webpack/schemas/plugins/HashedModuleIdsPlugin.json @@ -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 + } + } +} diff --git a/node_modules/webpack/schemas/plugins/IgnorePlugin.json b/node_modules/webpack/schemas/plugins/IgnorePlugin.json new file mode 100644 index 0000000..c873f07 --- /dev/null +++ b/node_modules/webpack/schemas/plugins/IgnorePlugin.json @@ -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)" + } + } + } + ] +} diff --git a/node_modules/webpack/schemas/plugins/LoaderOptionsPlugin.json b/node_modules/webpack/schemas/plugins/LoaderOptionsPlugin.json new file mode 100644 index 0000000..67efca4 --- /dev/null +++ b/node_modules/webpack/schemas/plugins/LoaderOptionsPlugin.json @@ -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 + } + } + } + } +} diff --git a/node_modules/webpack/schemas/plugins/ProgressPlugin.json b/node_modules/webpack/schemas/plugins/ProgressPlugin.json new file mode 100644 index 0000000..e3847c7 --- /dev/null +++ b/node_modules/webpack/schemas/plugins/ProgressPlugin.json @@ -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" + } + ] +} diff --git a/node_modules/webpack/schemas/plugins/SourceMapDevToolPlugin.json b/node_modules/webpack/schemas/plugins/SourceMapDevToolPlugin.json new file mode 100644 index 0000000..dd9d310 --- /dev/null +++ b/node_modules/webpack/schemas/plugins/SourceMapDevToolPlugin.json @@ -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" + } + ] + } + } +} diff --git a/node_modules/webpack/schemas/plugins/WatchIgnorePlugin.json b/node_modules/webpack/schemas/plugins/WatchIgnorePlugin.json new file mode 100644 index 0000000..b08d50b --- /dev/null +++ b/node_modules/webpack/schemas/plugins/WatchIgnorePlugin.json @@ -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 +} diff --git a/node_modules/webpack/schemas/plugins/debug/ProfilingPlugin.json b/node_modules/webpack/schemas/plugins/debug/ProfilingPlugin.json new file mode 100644 index 0000000..e9a4bf1 --- /dev/null +++ b/node_modules/webpack/schemas/plugins/debug/ProfilingPlugin.json @@ -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 + } + } +} diff --git a/node_modules/webpack/schemas/plugins/optimize/AggressiveSplittingPlugin.json b/node_modules/webpack/schemas/plugins/optimize/AggressiveSplittingPlugin.json new file mode 100644 index 0000000..19bcdfd --- /dev/null +++ b/node_modules/webpack/schemas/plugins/optimize/AggressiveSplittingPlugin.json @@ -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" + } + } +} diff --git a/node_modules/webpack/schemas/plugins/optimize/LimitChunkCountPlugin.json b/node_modules/webpack/schemas/plugins/optimize/LimitChunkCountPlugin.json new file mode 100644 index 0000000..b2636ee --- /dev/null +++ b/node_modules/webpack/schemas/plugins/optimize/LimitChunkCountPlugin.json @@ -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" + } + } +} diff --git a/node_modules/webpack/schemas/plugins/optimize/MinChunkSizePlugin.json b/node_modules/webpack/schemas/plugins/optimize/MinChunkSizePlugin.json new file mode 100644 index 0000000..03e17d6 --- /dev/null +++ b/node_modules/webpack/schemas/plugins/optimize/MinChunkSizePlugin.json @@ -0,0 +1,12 @@ +{ + "title": "MinChunkSizePluginOptions", + "type": "object", + "additionalProperties": false, + "properties": { + "minChunkSize": { + "description": "Minimum number of characters", + "type": "number" + } + }, + "required": ["minChunkSize"] +} diff --git a/node_modules/webpack/schemas/plugins/optimize/OccurrenceOrderChunkIdsPlugin.json b/node_modules/webpack/schemas/plugins/optimize/OccurrenceOrderChunkIdsPlugin.json new file mode 100644 index 0000000..12facf2 --- /dev/null +++ b/node_modules/webpack/schemas/plugins/optimize/OccurrenceOrderChunkIdsPlugin.json @@ -0,0 +1,11 @@ +{ + "title": "OccurrenceOrderChunkIdsPluginOptions", + "type": "object", + "additionalProperties": false, + "properties": { + "prioritiseInitial": { + "description": "Prioritise initial size over total size", + "type": "boolean" + } + } +} diff --git a/node_modules/webpack/schemas/plugins/optimize/OccurrenceOrderModuleIdsPlugin.json b/node_modules/webpack/schemas/plugins/optimize/OccurrenceOrderModuleIdsPlugin.json new file mode 100644 index 0000000..d76ac14 --- /dev/null +++ b/node_modules/webpack/schemas/plugins/optimize/OccurrenceOrderModuleIdsPlugin.json @@ -0,0 +1,11 @@ +{ + "title": "OccurrenceOrderModuleIdsPluginOptions", + "type": "object", + "additionalProperties": false, + "properties": { + "prioritiseInitial": { + "description": "Prioritise initial size over total size", + "type": "boolean" + } + } +} -- cgit v1.2.3