mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-30 19:15:43 +00:00
Revert making installable via composer (and add composer test entry point)
This revertsb8abb9b5f2
(a self-merged "experiment") and1bb0ea4f76
(Convert entry point to use explicit globals). The maintainers of this extension do not plan on supporting installation via composer. This functionality was never included in a stable release branch, and should not break anyone sticking to stable branches. Once merged, I can remove the package from packagist.org The composer.json is now used to add a "composer test" entry point to run PHPCS, which this extension badly needs. Change-Id: I2f3db6addd883d94366a696d5185bf05b2695b11
This commit is contained in:
parent
2c3fe04ce1
commit
11781784de
|
@ -16,7 +16,7 @@
|
||||||
/* Configuration */
|
/* Configuration */
|
||||||
|
|
||||||
// Each module may be configured individually to be globally on/off or user preference based
|
// Each module may be configured individually to be globally on/off or user preference based
|
||||||
$GLOBALS['wgWikiEditorFeatures'] = array(
|
$wgWikiEditorFeatures = array(
|
||||||
|
|
||||||
/* Textarea / i-frame compatible (OK to deploy) */
|
/* Textarea / i-frame compatible (OK to deploy) */
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ $GLOBALS['wgWikiEditorFeatures'] = array(
|
||||||
|
|
||||||
/* Setup */
|
/* Setup */
|
||||||
|
|
||||||
$GLOBALS['wgExtensionCredits']['other'][] = array(
|
$wgExtensionCredits['other'][] = array(
|
||||||
'path' => __FILE__,
|
'path' => __FILE__,
|
||||||
'name' => 'WikiEditor',
|
'name' => 'WikiEditor',
|
||||||
'author' => array( 'Trevor Parscal', 'Roan Kattouw', 'Nimish Gautam', 'Adam Miller' ),
|
'author' => array( 'Trevor Parscal', 'Roan Kattouw', 'Nimish Gautam', 'Adam Miller' ),
|
||||||
|
@ -44,21 +44,21 @@ $GLOBALS['wgExtensionCredits']['other'][] = array(
|
||||||
'url' => 'https://www.mediawiki.org/wiki/Extension:WikiEditor',
|
'url' => 'https://www.mediawiki.org/wiki/Extension:WikiEditor',
|
||||||
'descriptionmsg' => 'wikieditor-desc',
|
'descriptionmsg' => 'wikieditor-desc',
|
||||||
);
|
);
|
||||||
$GLOBALS['wgAutoloadClasses']['WikiEditorHooks'] = __DIR__ . '/WikiEditor.hooks.php';
|
$wgAutoloadClasses['WikiEditorHooks'] = __DIR__ . '/WikiEditor.hooks.php';
|
||||||
$GLOBALS['wgMessagesDirs']['WikiEditor'] = __DIR__ . '/i18n';
|
$wgMessagesDirs['WikiEditor'] = __DIR__ . '/i18n';
|
||||||
$GLOBALS['wgExtensionMessagesFiles']['WikiEditor'] = __DIR__ . '/WikiEditor.i18n.php';
|
$wgExtensionMessagesFiles['WikiEditor'] = __DIR__ . '/WikiEditor.i18n.php';
|
||||||
$GLOBALS['wgHooks']['EditPage::showEditForm:initial'][] =
|
$wgHooks['EditPage::showEditForm:initial'][] =
|
||||||
'WikiEditorHooks::editPageShowEditFormInitial';
|
'WikiEditorHooks::editPageShowEditFormInitial';
|
||||||
$GLOBALS['wgHooks']['GetPreferences'][] = 'WikiEditorHooks::getPreferences';
|
$wgHooks['GetPreferences'][] = 'WikiEditorHooks::getPreferences';
|
||||||
$GLOBALS['wgHooks']['ResourceLoaderGetConfigVars'][] =
|
$wgHooks['ResourceLoaderGetConfigVars'][] =
|
||||||
'WikiEditorHooks::resourceLoaderGetConfigVars';
|
'WikiEditorHooks::resourceLoaderGetConfigVars';
|
||||||
$GLOBALS['wgHooks']['ResourceLoaderTestModules'][] = 'WikiEditorHooks::resourceLoaderTestModules';
|
$wgHooks['ResourceLoaderTestModules'][] = 'WikiEditorHooks::resourceLoaderTestModules';
|
||||||
$GLOBALS['wgHooks']['MakeGlobalVariablesScript'][] = 'WikiEditorHooks::makeGlobalVariablesScript';
|
$wgHooks['MakeGlobalVariablesScript'][] = 'WikiEditorHooks::makeGlobalVariablesScript';
|
||||||
$GLOBALS['wgHooks']['EditPageBeforeEditToolbar'][] = 'WikiEditorHooks::EditPageBeforeEditToolbar';
|
$wgHooks['EditPageBeforeEditToolbar'][] = 'WikiEditorHooks::EditPageBeforeEditToolbar';
|
||||||
$GLOBALS['wgHooks']['EditPage::showEditForm:fields'][] = 'WikiEditorHooks::editPageShowEditFormFields';
|
$wgHooks['EditPage::showEditForm:fields'][] = 'WikiEditorHooks::editPageShowEditFormFields';
|
||||||
$GLOBALS['wgHooks']['BeforePageDisplay'][] = 'WikiEditorHooks::onBeforePageDisplay';
|
$wgHooks['BeforePageDisplay'][] = 'WikiEditorHooks::onBeforePageDisplay';
|
||||||
$GLOBALS['wgHooks']['EditPage::attemptSave'][] = 'WikiEditorHooks::editPageAttemptSave';
|
$wgHooks['EditPage::attemptSave'][] = 'WikiEditorHooks::editPageAttemptSave';
|
||||||
$GLOBALS['wgHooks']['EditPage::attemptSave:after'][] = 'WikiEditorHooks::editPageAttemptSaveAfter';
|
$wgHooks['EditPage::attemptSave:after'][] = 'WikiEditorHooks::editPageAttemptSaveAfter';
|
||||||
|
|
||||||
$wikiEditorTpl = array(
|
$wikiEditorTpl = array(
|
||||||
'localBasePath' => __DIR__ . '/modules',
|
'localBasePath' => __DIR__ . '/modules',
|
||||||
|
@ -66,7 +66,7 @@ $wikiEditorTpl = array(
|
||||||
'group' => 'ext.wikiEditor',
|
'group' => 'ext.wikiEditor',
|
||||||
);
|
);
|
||||||
|
|
||||||
$GLOBALS['wgResourceModules'] += array(
|
$wgResourceModules += array(
|
||||||
|
|
||||||
/* WikiEditor jQuery plugin Resources */
|
/* WikiEditor jQuery plugin Resources */
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "mediawiki/wiki-editor",
|
"require-dev": {
|
||||||
"type": "mediawiki-extension",
|
"jakub-onderka/php-parallel-lint": "0.8.0",
|
||||||
"description": "WikiEditor is an extendable framework with a set of feature-based modules that improve the user experience of editing.",
|
"mediawiki/mediawiki-codesniffer": "0.1.0"
|
||||||
"homepage": "http://www.mediawiki.org/wiki/Extension:WikiEditor",
|
},
|
||||||
"license" : "GPL-2.0",
|
"scripts": {
|
||||||
|
"test": [
|
||||||
"require": {
|
"parallel-lint . --exclude vendor",
|
||||||
"composer/installers" : "*"
|
"phpcs --standard=vendor/mediawiki/mediawiki-codesniffer/MediaWiki --extensions=php,php5,inc --ignore=vendor -p ."
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue