From 64e2699a511e33edffca4d638e96b91e99b4d263 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 10 Jan 2018 23:37:08 +0100 Subject: [PATCH] Add extension.json --- HomePageWMES.php | 20 ++++++++++++-------- extension.json | 26 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 extension.json diff --git a/HomePageWMES.php b/HomePageWMES.php index b68b444..a839959 100644 --- a/HomePageWMES.php +++ b/HomePageWMES.php @@ -1,11 +1,15 @@ 'js/home.js', - 'styles' => 'style.css', - 'localBasePath' => dirname( __FILE__ ), - 'remoteExtPath' => 'HomePageWMES' -); + $wgResourceModules['ext.homepage-wmes'] = array( + 'scripts' => 'js/home.js', + 'styles' => 'style.css', + 'localBasePath' => dirname( __FILE__ ), + 'remoteExtPath' => 'HomePageWMES' + ); +} diff --git a/extension.json b/extension.json new file mode 100644 index 0000000..80117ef --- /dev/null +++ b/extension.json @@ -0,0 +1,26 @@ +{ + "name": "HomePageWMES", + "type": "parserhook", + "author": "Platonides", + "version": "3.0", + "license-name": "GPL-2.0-or-later", + "description": "Muestra la portada de Wikimedia España", + "AutoloadClasses": { + "HomePageWMES": "HomePageWMES_body.php" + }, + "ResourceModules": { + "ext.homepage-wmes": { + "scripts": "js/home.js", + "styles": "style.css" + } + }, + "ResourceFileModulePaths": { + "localBasePath": "", + "remoteExtPath": "HomePageWMES" + }, + "Hooks": { + "ParserFirstCallInit": "HomePageWMES::setupHook" + }, + + "manifest_version": 1 +} -- 2.30.2