From 0469abd4a9c9270a1fdc962969e36e63699af8b4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 10 Dec 2017 21:51:33 +0100 Subject: upgrade dependencies --- .../webpack/schemas/webpackOptionsSchema.json | 494 ++++++++++++++++++--- 1 file changed, 423 insertions(+), 71 deletions(-) (limited to 'node_modules/webpack/schemas') diff --git a/node_modules/webpack/schemas/webpackOptionsSchema.json b/node_modules/webpack/schemas/webpackOptionsSchema.json index 1e5941d74..ee38a2021 100644 --- a/node_modules/webpack/schemas/webpackOptionsSchema.json +++ b/node_modules/webpack/schemas/webpackOptionsSchema.json @@ -3,6 +3,7 @@ "definitions": { "common.arrayOfStringOrStringArrayValues": { "items": { + "description": "string or array of strings", "anyOf": [ { "minLength": 1, @@ -10,6 +11,7 @@ }, { "items": { + "description": "A non-empty string", "minLength": 1, "type": "string" }, @@ -21,6 +23,7 @@ }, "common.arrayOfStringValues": { "items": { + "description": "A non-empty string", "minLength": 1, "type": "string" }, @@ -28,6 +31,7 @@ }, "common.nonEmptyArrayOfUniqueStringValues": { "items": { + "description": "A non-empty string", "minLength": 1, "type": "string" }, @@ -36,11 +40,11 @@ "uniqueItems": true }, "entry": { - "description": "The entry point(s) of the compilation.", "oneOf": [ { "minProperties": 1, "additionalProperties": { + "description": "An entry point with name", "oneOf": [ { "description": "The string is resolved to a module which is loaded upon startup.", @@ -49,7 +53,11 @@ }, { "description": "All modules are loaded upon startup. The last one is exported.", - "$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues" + "anyOf": [ + { + "$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues" + } + ] } ] }, @@ -57,20 +65,20 @@ "type": "object" }, { - "description": "The string is resolved to a module which is loaded upon startup.", + "description": "An entry point without name. The string is resolved to a module which is loaded upon startup.", "minLength": 1, "type": "string" }, { - "allOf": [ + "description": "An entry point without name. All modules are loaded upon startup. The last one is exported.", + "anyOf": [ { "$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues" } - ], - "description": "All modules are loaded upon startup. The last one is exported." + ] }, { - "description": "function returning an entry object or a promise.", + "description": "A Function returning an entry object, an entry string, an entry array or a promise to these things.", "instanceof": "Function" } ] @@ -83,6 +91,7 @@ }, { "additionalProperties": { + "description": "The dependency used for the external", "anyOf": [ { "type": "string" @@ -108,24 +117,30 @@ }, { "items": { - "$ref": "#/definitions/externals" + "description": "External configuration", + "anyOf": [ + { + "$ref": "#/definitions/externals" + } + ] }, "type": "array" } - ], - "description": "Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`." + ] }, "module": { "additionalProperties": false, - "description": "Options affecting the normal modules (`NormalModuleFactory`).", "properties": { "exprContextCritical": { + "description": "Enable warnings for full dynamic dependencies", "type": "boolean" }, "exprContextRecursive": { + "description": "Enable recursive directory lookup for full dynamic dependencies", "type": "boolean" }, "exprContextRegExp": { + "description": "Sets the default regular expression for full dynamic dependencies", "anyOf": [ { "type": "boolean" @@ -136,21 +151,23 @@ ] }, "exprContextRequest": { + "description": "Set the default request for full dynamic dependencies", "type": "string" }, "loaders": { - "allOf": [ + "description": "An array of automatically applied loaders.", + "anyOf": [ { "$ref": "#/definitions/ruleSet-rules" } - ], - "description": "An array of automatically applied loaders." + ] }, "noParse": { "description": "Don't parse files matching. It's matched against the full resolved request.", "anyOf": [ { "items": { + "description": "A regular expression, when matched the module is not parsed", "instanceof": "RegExp" }, "minItems": 1, @@ -164,6 +181,7 @@ }, { "items": { + "description": "An absolute path, when the module starts with this path it is not parsed", "type": "string", "absolutePath": true }, @@ -185,12 +203,15 @@ "description": "An array of rules applied for modules." }, "unknownContextCritical": { + "description": "Enable warnings when using the require function in a not statically analyse-able way", "type": "boolean" }, "unknownContextRecursive": { + "description": "Enable recursive directory lookup when using the require function in a not statically analyse-able way", "type": "boolean" }, "unknownContextRegExp": { + "description": "Sets the regular expression when using the require function in a not statically analyse-able way", "anyOf": [ { "type": "boolean" @@ -201,9 +222,11 @@ ] }, "unknownContextRequest": { + "description": "Sets the request when using the require function in a not statically analyse-able way", "type": "string" }, "unsafeCache": { + "description": "Cache the resolving of module requests", "anyOf": [ { "type": "boolean" @@ -214,18 +237,23 @@ ] }, "wrappedContextCritical": { + "description": "Enable warnings for partial dynamic dependencies", "type": "boolean" }, "wrappedContextRecursive": { + "description": "Enable recursive directory lookup for partial dynamic dependencies", "type": "boolean" }, "wrappedContextRegExp": { + "description": "Set the inner regular expression for partial dynamic dependencies", "instanceof": "RegExp" }, "strictExportPresence": { + "description": "Emit errors instead of warnings when imported names don't exist in imported module", "type": "boolean" }, "strictThisContextOnImports": { + "description": "Handle the this context correctly according to the spec for namespace objects", "type": "boolean" } }, @@ -233,7 +261,6 @@ }, "output": { "additionalProperties": false, - "description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.", "properties": { "auxiliaryComment": { "description": "Add a comment in the UMD wrapper.", @@ -247,15 +274,19 @@ "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", "properties": { "amd": { + "description": "Set comment for `amd` section in UMD", "type": "string" }, "commonjs": { + "description": "Set comment for `commonjs` (exports) section in UMD", "type": "string" }, "commonjs2": { + "description": "Set comment for `commonjs2` (module.exports) section in UMD", "type": "string" }, "root": { + "description": "Set comment for `root` (global variable) section in UMD", "type": "string" } }, @@ -300,17 +331,6 @@ }, { "description": "An object similar to `module.loaders` enables it for specific files.", - "properties": { - "exclude": { - "type": "string" - }, - "include": { - "type": "string" - }, - "test": { - "type": "string" - } - }, "type": "object" } ] @@ -332,18 +352,25 @@ "absolutePath": false }, "hashDigest": { - "minLength": 1, - "type": "string" + "description": "Digest type used for the hash", + "enum": [ + "latin1", + "hex", + "base64" + ] }, "hashDigestLength": { + "description": "Number of chars which are used for the hash", "minimum": 1, "type": "number" }, "hashFunction": { + "description": "Algorithm used for generation the hash (see node.js crypto package)", "minLength": 1, "type": "string" }, "hashSalt": { + "description": "Any string which is added to the hash to salt it", "minLength": 1, "type": "string" }, @@ -372,22 +399,34 @@ }, { "items": { + "description": "A part of the library name", "type": "string" }, "type": "array" }, { "type": "object", + "additionalProperties": false, "properties": { - "root": { "type": "string" }, - "amd": { "type": "string" }, - "commonjs": { "type": "string" } + "root": { + "description": "Name of the property exposed globally by a UMD library", + "type": "string" + }, + "amd": { + "description": "Name of the exposed AMD library in the UMD", + "type": "string" + }, + "commonjs": { + "description": "Name of the exposed commonjs export in the UMD", + "type": "string" + } } } ], "description": "If set, export the bundle as library. `output.library` is the name." }, "libraryTarget": { + "description": "Type of library", "enum": [ "var", "assign", @@ -404,6 +443,7 @@ ] }, "libraryExport": { + "description": "Specify which export should be exposed as library", "anyOf": [ { "type": "string" @@ -450,24 +490,30 @@ "additionalProperties": false, "properties": { "alias": { + "description": "Redirect module requests", "anyOf": [ { "additionalProperties": { + "description": "New request", "type": "string" }, "type": "object" }, { "items": { + "description": "Alias configuration", "additionalProperties": false, "properties": { "alias": { + "description": "New request", "type": "string" }, "name": { + "description": "Request to be redirected", "type": "string" }, "onlyModule": { + "description": "Redirect only exact matching request", "type": "boolean" } }, @@ -478,47 +524,93 @@ ] }, "aliasFields": { - "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues" + "description": "Fields in the description file (package.json) which are used to redirect requests inside the module", + "anyOf": [ + { + "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues" + } + ] }, "cachePredicate": { + "description": "Predicate function to decide which requests should be cached", "instanceof": "Function" }, "cacheWithContext": { + "description": "Include the context information in the cache identifier when caching", "type": "boolean" }, "descriptionFiles": { - "$ref": "#/definitions/common.arrayOfStringValues" + "description": "Filenames used to find a description file", + "anyOf": [ + { + "$ref": "#/definitions/common.arrayOfStringValues" + } + ] }, "enforceExtension": { + "description": "Enforce using one of the extensions from the extensions option", "type": "boolean" }, "enforceModuleExtension": { + "description": "Enforce using one of the module extensions from the moduleExtensions option", "type": "boolean" }, "extensions": { - "$ref": "#/definitions/common.arrayOfStringValues" + "description": "Extensions added to the request when trying to find the file", + "anyOf": [ + { + "$ref": "#/definitions/common.arrayOfStringValues" + } + ] + }, + "fileSystem": { + "description": "Filesystem for the resolver" }, - "fileSystem": {}, "mainFields": { - "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues" + "description": "Field names from the description file (package.json) which are used to find the default entry point", + "anyOf": [ + { + "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues" + } + ] }, "mainFiles": { - "$ref": "#/definitions/common.arrayOfStringValues" + "description": "Filenames used to find the default entry point if there is no description file or main field", + "anyOf": [ + { + "$ref": "#/definitions/common.arrayOfStringValues" + } + ] }, "moduleExtensions": { - "$ref": "#/definitions/common.arrayOfStringValues" + "description": "Extenstions added to the module request when trying to find the module", + "anyOf": [ + { + "$ref": "#/definitions/common.arrayOfStringValues" + } + ] }, "modules": { - "$ref": "#/definitions/common.arrayOfStringValues" + "description": "Folder names or directory paths where to find modules", + "anyOf": [ + { + "$ref": "#/definitions/common.arrayOfStringValues" + } + ] }, "plugins": { + "description": "Plugins for the resolver", "type": "array" }, - "resolver": {}, + "resolver": { + "description": "Custom resolver" + }, "symlinks": { + "description": "Enable resolving symlinks to the original location", "type": "boolean" }, "unsafeCache": { + "description": "Enable caching of successfully resolved requests", "anyOf": [ { "type": "boolean" @@ -530,6 +622,7 @@ ] }, "useSyncFileSystemCalls": { + "description": "Use synchronous filesystem calls for the resolver", "type": "boolean" } }, @@ -554,22 +647,52 @@ "additionalProperties": false, "properties": { "and": { - "$ref": "#/definitions/ruleSet-conditions" + "description": "Logical AND", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-conditions" + } + ] }, "exclude": { - "$ref": "#/definitions/ruleSet-condition" + "description": "Exclude all modules matching any of these conditions", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-condition" + } + ] }, "include": { - "$ref": "#/definitions/ruleSet-condition" + "description": "Exclude all modules matching not any of these conditions", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-condition" + } + ] }, "not": { - "$ref": "#/definitions/ruleSet-conditions" + "description": "Logical NOT", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-conditions" + } + ] }, "or": { - "$ref": "#/definitions/ruleSet-conditions" + "description": "Logical OR", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-conditions" + } + ] }, "test": { - "$ref": "#/definitions/ruleSet-condition" + "description": "Exclude all modules matching any of these conditions", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-condition" + } + ] } }, "type": "object" @@ -578,7 +701,12 @@ }, "ruleSet-conditions": { "items": { - "$ref": "#/definitions/ruleSet-condition" + "description": "A rule condition", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-condition" + } + ] }, "type": "array" }, @@ -600,12 +728,14 @@ "additionalProperties": false, "properties": { "enforce": { + "description": "Enforce this rule as pre or post step", "enum": [ "pre", "post" ] }, "exclude": { + "description": "Shortcut for resource.exclude", "allOf": [ { "$ref": "#/definitions/ruleSet-condition" @@ -616,6 +746,7 @@ ] }, "include": { + "description": "Shortcut for resource.include", "allOf": [ { "$ref": "#/definitions/ruleSet-condition" @@ -626,6 +757,7 @@ ] }, "issuer": { + "description": "Match the issuer of the module (The module pointing to this module)", "allOf": [ { "$ref": "#/definitions/ruleSet-condition" @@ -636,6 +768,7 @@ ] }, "loader": { + "description": "Shortcut for use.loader", "anyOf": [ { "$ref": "#/definitions/ruleSet-loader" @@ -646,22 +779,44 @@ ] }, "loaders": { - "$ref": "#/definitions/ruleSet-use" + "description": "Shortcut for use.loader", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-use" + } + ] }, "oneOf": { - "$ref": "#/definitions/ruleSet-rules" + "description": "Only execute the first matching rule in this array", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-rules" + } + ] }, "options": { - "$ref": "#/definitions/ruleSet-query" + "description": "Shortcut for use.options", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-query" + } + ] }, "parser": { + "description": "Options for parsing", "additionalProperties": true, "type": "object" }, "query": { - "$ref": "#/definitions/ruleSet-query" + "description": "Shortcut for use.query", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-query" + } + ] }, "resource": { + "description": "Match the resource path of the module", "allOf": [ { "$ref": "#/definitions/ruleSet-condition" @@ -672,15 +827,31 @@ ] }, "resourceQuery": { - "$ref": "#/definitions/ruleSet-condition" + "description": "Match the resource query of the module", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-condition" + } + ] }, "compiler": { - "$ref": "#/definitions/ruleSet-condition" + "description": "Match the child compiler name", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-condition" + } + ] }, "rules": { - "$ref": "#/definitions/ruleSet-rules" + "description": "Match and execute these rules when this rule is matched", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-rules" + } + ] }, "test": { + "description": "Shortcut for resource.test", "allOf": [ { "$ref": "#/definitions/ruleSet-condition" @@ -691,14 +862,24 @@ ] }, "use": { - "$ref": "#/definitions/ruleSet-use" + "description": "Modifiers applied to the module when rule is matched", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-use" + } + ] } }, "type": "object" }, "ruleSet-rules": { "items": { - "$ref": "#/definitions/ruleSet-rule" + "description": "A rule", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-rule" + } + ] }, "type": "array" }, @@ -712,7 +893,12 @@ }, { "items": { - "$ref": "#/definitions/ruleSet-use-item" + "description": "An use item", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-use-item" + } + ] }, "type": "array" } @@ -730,13 +916,28 @@ "additionalProperties": false, "properties": { "loader": { - "$ref": "#/definitions/ruleSet-loader" + "description": "Loader name", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-loader" + } + ] }, "options": { - "$ref": "#/definitions/ruleSet-query" + "description": "Loader options", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-query" + } + ] }, "query": { - "$ref": "#/definitions/ruleSet-query" + "description": "Loader query", + "anyOf": [ + { + "$ref": "#/definitions/ruleSet-query" + } + ] } }, "type": "object" @@ -764,7 +965,12 @@ { "type": "array", "items": { - "$ref": "#/definitions/filter-item-types" + "description": "Rule to filter", + "anyOf": [ + { + "$ref": "#/definitions/filter-item-types" + } + ] } } ] @@ -799,11 +1005,13 @@ "dependencies": { "description": "References to other configurations to depend on.", "items": { + "description": "References to another configuration to depend on.", "type": "string" }, "type": "array" }, "devServer": { + "description": "Options for the webpack-dev-server", "type": "object" }, "devtool": { @@ -820,17 +1028,32 @@ ] }, "entry": { - "$ref": "#/definitions/entry" + "description": "The entry point(s) of the compilation.", + "anyOf": [ + { + "$ref": "#/definitions/entry" + } + ] }, "externals": { - "$ref": "#/definitions/externals" + "description": "Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", + "anyOf": [ + { + "$ref": "#/definitions/externals" + } + ] }, "loader": { "description": "Custom values available in the loader context.", "type": "object" }, "module": { - "$ref": "#/definitions/module" + "description": "Options affecting the normal modules (`NormalModuleFactory`).", + "anyOf": [ + { + "$ref": "#/definitions/module" + } + ] }, "name": { "description": "Name of the configuration. Used when loading multiple configurations.", @@ -846,6 +1069,7 @@ }, { "additionalProperties": { + "description": "Include a polyfill for the node.js module", "enum": [ false, true, @@ -855,6 +1079,7 @@ }, "properties": { "Buffer": { + "description": "Include a polyfill for the 'Buffer' variable", "enum": [ false, true, @@ -862,6 +1087,7 @@ ] }, "__dirname": { + "description": "Include a polyfill for the '__dirname' variable", "enum": [ false, true, @@ -869,6 +1095,7 @@ ] }, "__filename": { + "description": "Include a polyfill for the '__filename' variable", "enum": [ false, true, @@ -876,6 +1103,7 @@ ] }, "console": { + "description": "Include a polyfill for the 'console' variable", "enum": [ false, true, @@ -883,9 +1111,11 @@ ] }, "global": { + "description": "Include a polyfill for the 'global' variable", "type": "boolean" }, "process": { + "description": "Include a polyfill for the 'process' variable", "enum": [ false, true, @@ -898,7 +1128,12 @@ ] }, "output": { - "$ref": "#/definitions/output" + "description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.", + "anyOf": [ + { + "$ref": "#/definitions/output" + } + ] }, "parallelism": { "description": "The number of parallel processed modules in the compilation.", @@ -965,17 +1200,32 @@ "absolutePath": true }, "resolve": { - "$ref": "#/definitions/resolve" + "description": "Options for the resolver", + "anyOf": [ + { + "$ref": "#/definitions/resolve" + } + ] }, "resolveLoader": { - "$ref": "#/definitions/resolve" + "description": "Options for the resolver when resolving loaders", + "anyOf": [ + { + "$ref": "#/definitions/resolve" + } + ] }, "stats": { "description": "Used by the webpack CLI program to pass stats options.", "anyOf": [ { "type": "object", + "additionalProperties": false, "properties": { + "all": { + "type": "boolean", + "description": "fallback value for stats options when an option is not defined (has precedence over local webpack defaults)" + }, "context": { "type": "string", "description": "context directory for request shortening", @@ -993,10 +1243,65 @@ "type": "boolean", "description": "add timing information" }, + "performance": { + "type": "boolean", + "description": "add performance hint flags" + }, + "depth": { + "type": "boolean", + "description": "add module depth in module graph" + }, "assets": { "type": "boolean", "description": "add assets information" }, + "env": { + "type": "boolean", + "description": "add --env information" + }, + "colors": { + "description": "Enables/Disables colorful output", + "oneOf": [ + { + "type": "boolean", + "description": "`webpack --colors` equivalent" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "bold": { + "description": "Custom color for bold text", + "type": "string" + }, + "red": { + "description": "Custom color for red text", + "type": "string" + }, + "green": { + "description": "Custom color for green text", + "type": "string" + }, + "cyan": { + "description": "Custom color for cyan text", + "type": "string" + }, + "magenta": { + "description": "Custom color for magenta text", + "type": "string" + }, + "yellow": { + "description": "Custom color for yellow text", + "type": "string" + } + } + } + ] + }, + "maxModules": { + "type": "number", + "description": "Set the maximum number of modules to be shown" + }, "chunks": { "type": "boolean", "description": "add chunk information" @@ -1017,6 +1322,10 @@ "type": "boolean", "description": "add also information about cached (not built) modules" }, + "cachedAssets": { + "type": "boolean", + "description": "Show cached assets (setting this to `false` only shows emitted files)" + }, "reasons": { "type": "boolean", "description": "add information about the reasons why modules are included" @@ -1025,21 +1334,49 @@ "type": "boolean", "description": "add the source code of modules" }, + "warnings": { + "type": "boolean", + "description": "add warnings" + }, + "errors": { + "type": "boolean", + "description": "add errors" + }, "warningsFilter": { "description": "Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions", - "$ref": "#/definitions/filter-types" + "anyOf": [ + { + "$ref": "#/definitions/filter-types" + } + ] }, "excludeAssets": { "description": "Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions", - "$ref": "#/definitions/filter-types" + "anyOf": [ + { + "$ref": "#/definitions/filter-types" + } + ] }, "excludeModules": { "description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps or Functions", - "$ref": "#/definitions/filter-types" + "anyOf": [ + { + "$ref": "#/definitions/filter-types" + } + ] }, "exclude": { "description": "Please use excludeModules instead.", - "$ref": "#/definitions/filter-types" + "anyOf": [ + { + "$ref": "#/definitions/filter-types" + } + ] + }, + "entrypoints": { + "type": "boolean", + "description": "Display the entry points with the corresponding bundles" }, "errorDetails": { "type": "boolean", @@ -1065,6 +1402,10 @@ "type": "string", "description": "sort the assets by that field" }, + "publicPath": { + "type": "boolean", + "description": "Add public path information" + }, "providedExports": { "type": "boolean", "description": "show exports provided by modules" @@ -1095,6 +1436,7 @@ ] }, "target": { + "description": "Environment to build for", "anyOf": [ { "enum": [ @@ -1119,12 +1461,22 @@ "type": "boolean" }, "watchOptions": { + "description": "Options for the watcher", + "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, + "ignored": { + "description": "Ignore some files from watching" + }, + "stdin": { + "description": "Stop watching when stdin stream has ended", + "type": "boolean" + }, "poll": { + "description": "Enable polling mode for watching", "anyOf": [ { "description": "`true`: use polling.", -- cgit v1.2.3