From: jenkins-bot Date: Thu, 14 Feb 2019 06:38:04 +0000 (+0000) Subject: Merge "registration: Allow @-prefixed keys in manifest_version 2" X-Git-Tag: 1.34.0-rc.0~2823 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=37ef56fadd17089b2dd945cecf834683a62cd1b7;hp=-c;p=lhc%2Fweb%2Fwiklou.git Merge "registration: Allow @-prefixed keys in manifest_version 2" --- 37ef56fadd17089b2dd945cecf834683a62cd1b7 diff --combined docs/extension.schema.v2.json index 15a1590126,1936cdcb52..22edac07bc --- a/docs/extension.schema.v2.json +++ b/docs/extension.schema.v2.json @@@ -3,6 -3,12 +3,12 @@@ "description": "MediaWiki extension.json schema", "type": "object", "additionalProperties": false, + "patternProperties": { + "^@": { + "type": "string", + "description": "Arbitrary notes, ignored by the parser." + } + }, "properties": { "manifest_version": { "type": "integer", @@@ -254,10 -260,6 +260,10 @@@ "noflip": { "type": "boolean", "description": "Whether to skip CSSJanus LTR-to-RTL flipping for this module. Recommended for styles imported from libraries that already properly handle their RTL styles. Default is false, meaning CSSJanus will be applied on RTL-mode output." + }, + "packageFiles": { + "type": ["object", "array"], + "description": "Package files that can be require()d" } } }, @@@ -377,53 -379,6 +383,53 @@@ "type": "object", "description": "ResourceLoader sources to register" }, + "QUnitTestModule": { + "type": "object", + "description": "A ResourceLoaderFileModule definition registered only when wgEnableJavaScriptTest is true.", + "additionalProperties": false, + "properties": { + "localBasePath": { + "type": "string", + "description": "Prefix for local paths to files in $options, relative to extenion directory" + }, + "remoteExtPath": { + "type": "string", + "description": "Prefix for URLs to files in $options, relative to $wgExtensionAssetsPath" + }, + "remoteSkinPath": { + "type": "string", + "description": "Prefix for URLs to files in $options, relative to $wgStylePath" + }, + "scripts": { + "type": ["string", "array"], + "description": "Scripts to include (array of file paths)", + "items": { + "type": "string" + } + }, + "dependencies": { + "type": ["string", "array"], + "description": "Modules which must be loaded before this module", + "items": { + "type": "string" + } + }, + "styles": { + "type": ["string", "array", "object"], + "description": "Styles to load", + "items": { + "type": "string" + } + }, + "messages": { + "type": ["string", "array"], + "description": "Messages to load", + "items": { + "type": "string" + } + } + } + }, "ConfigRegistry": { "type": "object", "description": "Registry of factory functions to create Config objects"