mediawiki-extensions-Discus.../extension.json
Ed Sanders ccb631eedc Separate DiscussionToolsData from DiscussionToolsHooks
Change-Id: Icb15cc7d118ac20bcf131f6862095b4481d1c882
2019-10-28 12:29:56 +00:00

86 lines
1.7 KiB
JSON

{
"name": "DiscussionTools",
"license-name": "MIT",
"version": "0.0.0",
"namemsg": "discussiontools",
"descriptionmsg": "discussiontools-desc",
"manifest_version": 2,
"requires": {
"MediaWiki": ">= 1.34.0",
"extensions": {
"VisualEditor": ">= 0.1.1"
}
},
"MessagesDirs": {
"DiscussionTools": [ "i18n" ]
},
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "DiscussionTools/modules"
},
"ResourceModules": {
"ext.discussionTools.parser": {
"packageFiles": [
"parser.js",
"lib/moment-timezone/moment-timezone-with-data-1970-2030.js",
{
"name": "data.json",
"callback": "DiscussionToolsData::getLocalData"
}
],
"dependencies": [
"moment",
"mediawiki.util",
"mediawiki.Uri",
"mediawiki.Title"
]
},
"ext.discussionTools.init": {
"packageFiles": [
"dt.init.js"
],
"dependencies": [
"mediawiki.Uri",
"ext.discussionTools.parser"
]
},
"ext.discussionTools.debug": {
"packageFiles": [
"dt.debug.js",
"highlighter.js"
],
"styles": "highlighter.css",
"dependencies": [
"ext.discussionTools.parser"
]
}
},
"QUnitTestModule": {
"localBasePath": "tests/qunit",
"remoteExtPath": "DiscussionTools/tests/qunit",
"packageFiles": [
"index.js",
"utils.js",
{
"name": "data-en.json",
"callback": "DiscussionToolsData::getLocalData",
"callbackParam": "en"
},
"parser.test.js"
],
"dependencies": [
"ext.discussionTools.parser"
]
},
"AutoloadClasses": {
"DiscussionToolsData": "includes/DiscussionToolsData.php",
"DiscussionToolsHooks": "includes/DiscussionToolsHooks.php"
},
"Hooks": {
"BeforePageDisplay": [
"DiscussionToolsHooks::onBeforePageDisplay"
]
},
"type": "other"
}