Skip to content

Remove MediaWiki extension.json #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "wikimedia",
"env": {
"browser": true,
"jquery": true
"extends": "wikimedia",
"env": {
"browser": true,
"jquery": true
},
"globals": {
"dataValues": false,
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ version 2.0 of this package:

## Release notes

### 3.0.0 (dev)

* Removed the (optional) MediaWiki extension registration.

### 2.1.0 (2017-09-04)

* Updated the MediaWiki entry point to use the extension.json format.
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"scripts": {
"fix": "phpcbf",
"test": [
"composer validate --no-interaction",
"phpcs -p -s"
]
}
Expand Down
4 changes: 0 additions & 4 deletions init.mw.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,5 @@
die( 'Not an entry point.' );
}

if ( function_exists( 'wfLoadExtension' ) ) {
wfLoadExtension( 'WikibaseSerializationJavaScript', __DIR__ . '/mediawiki-extension.json' );
}

include __DIR__ . '/resources.php';
include __DIR__ . '/resources.tests.php';
12 changes: 0 additions & 12 deletions mediawiki-extension.json

This file was deleted.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"directories": {
"lib": "src",
"test": "tests"
},
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-wikimedia": "0.4.0"
},
"scripts": {
"eslint": "eslint ."
}
"directories": {
"lib": "src",
"test": "tests"
},
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-wikimedia": "0.4.0"
},
"scripts": {
"eslint": "eslint ."
}
}