mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-27 15:40:00 +00:00
4d53bcbe09
This saves about 300k uncompressed / 80k compressed whenever VE loads! Change-Id: I7cf1c35292c2ea48cc15ceb4c22d4473a25484e9
162 lines
3.7 KiB
JSON
162 lines
3.7 KiB
JSON
{
|
|
"name": "CodeMirror",
|
|
"version": "4.0.0",
|
|
"author": [
|
|
"[https://www.mediawiki.org/wiki/User:Pastakhov Pavel Astakhov]",
|
|
"[https://www.mediawiki.org/wiki/User:Florianschmidtwelzow Florian Schmidt]",
|
|
"Marijn Haverbeke",
|
|
"[https://raw.githubusercontent.com/codemirror/CodeMirror/master/AUTHORS CodeMirror contributors]"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:CodeMirror",
|
|
"descriptionmsg": "codemirror-desc",
|
|
"type": "editor",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.34.0"
|
|
},
|
|
"MessagesDirs": {
|
|
"CodeMirror": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"AutoloadClasses": {
|
|
"CodeMirrorHooks": "includes/CodeMirrorHooks.php",
|
|
"ResourceLoaderCodeMirrorModule": "includes/ResourceLoaderCodeMirrorModule.php"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.CodeMirror": {
|
|
"dependencies": [
|
|
"ext.CodeMirror.data",
|
|
"jquery.textSelection",
|
|
"mediawiki.api",
|
|
"mediawiki.user",
|
|
"user.options",
|
|
"jquery.ui",
|
|
"oojs-ui.styles.icons-editing-styling"
|
|
],
|
|
"scripts": [
|
|
"ext.CodeMirror.js"
|
|
],
|
|
"styles": [
|
|
"ext.CodeMirror.less"
|
|
],
|
|
"messages": [
|
|
"codemirror-toggle-label"
|
|
]
|
|
},
|
|
"ext.CodeMirror.data": {
|
|
"class": "ResourceLoaderCodeMirrorModule"
|
|
},
|
|
"ext.CodeMirror.lib": {
|
|
"scripts": [
|
|
"lib/codemirror/lib/codemirror.js"
|
|
],
|
|
"styles": [
|
|
"lib/codemirror/lib/codemirror.css",
|
|
"lib/codemirror-fixes.less"
|
|
]
|
|
},
|
|
"ext.CodeMirror.mode.mediawiki": {
|
|
"scripts": "mode/mediawiki/mediawiki.js",
|
|
"styles": "mode/mediawiki/mediawiki.css",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.lib.mode.css": {
|
|
"scripts": "lib/codemirror/mode/css/css.js",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.lib.mode.javascript": {
|
|
"scripts": "lib/codemirror/mode/javascript/javascript.js",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.lib.mode.xml": {
|
|
"scripts": "lib/codemirror/mode/xml/xml.js",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.lib.mode.htmlmixed": {
|
|
"scripts": "lib/codemirror/mode/htmlmixed/htmlmixed.js",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib.mode.xml",
|
|
"ext.CodeMirror.lib.mode.javascript",
|
|
"ext.CodeMirror.lib.mode.css",
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.lib.mode.clike": {
|
|
"scripts": "lib/codemirror/mode/clike/clike.js",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.lib.mode.php": {
|
|
"scripts": "lib/codemirror/mode/php/php.js",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib.mode.htmlmixed",
|
|
"ext.CodeMirror.lib.mode.clike",
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.visualEditor.init": {
|
|
"scripts": [
|
|
"modules/ve-cm/ve.ui.CodeMirror.init.js"
|
|
],
|
|
"styles": [
|
|
"modules/ve-cm/ve.ui.CodeMirror.init.less"
|
|
],
|
|
"messages": [
|
|
"codemirror-toggle-label"
|
|
],
|
|
"targets": [
|
|
"desktop"
|
|
]
|
|
},
|
|
"ext.CodeMirror.visualEditor": {
|
|
"dependencies": [
|
|
"ext.visualEditor.mwcore",
|
|
"mediawiki.api",
|
|
"user.options"
|
|
],
|
|
"scripts": [
|
|
"modules/ve-cm/ve.ui.CodeMirrorAction.js",
|
|
"modules/ve-cm/ve.ui.CodeMirrorTool.js"
|
|
],
|
|
"targets": [
|
|
"desktop"
|
|
]
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "resources",
|
|
"remoteExtPath": "CodeMirror/resources"
|
|
},
|
|
"Hooks": {
|
|
"BeforePageDisplay": [
|
|
"CodeMirrorHooks::onBeforePageDisplay"
|
|
],
|
|
"GetPreferences": [
|
|
"CodeMirrorHooks::onGetPreferences"
|
|
],
|
|
"ResourceLoaderTestModules": [
|
|
"CodeMirrorHooks::onResourceLoaderTestModules"
|
|
]
|
|
},
|
|
"VisualEditorPluginModules": [
|
|
"ext.CodeMirror.visualEditor.init",
|
|
"ext.CodeMirror.visualEditor"
|
|
],
|
|
"CodeMirrorTagModes": {
|
|
"pre": "mw-tag-pre",
|
|
"nowiki": "mw-tag-nowiki"
|
|
},
|
|
"CodeMirrorPluginModules": [],
|
|
"manifest_version": 1
|
|
}
|