Reedy has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/298084

Change subject: Revert "Remove extension.json"
......................................................................

Revert "Remove extension.json"

This reverts commit 4699d68b37fa7e08d79e31dc4a17910f23c830b9.

Change-Id: I9017e93c9a59445e2c500fb7c01836f5675182d6
---
M Gruntfile.js
A extension.json
2 files changed, 53 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContactPage 
refs/changes/84/298084/1

diff --git a/Gruntfile.js b/Gruntfile.js
index f5941c4..7cf7a22 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -9,12 +9,9 @@
        grunt.loadNpmTasks( 'grunt-banana-checker' );
        grunt.loadNpmTasks( 'grunt-jsonlint' );
 
+       var conf = grunt.file.readJSON( 'extension.json' );
        grunt.initConfig( {
-               banana: {
-                       "ContactPage": [
-                               "i18n"
-                       ]
-               },
+               banana: conf.MessagesDirs,
                jsonlint: {
                        all: [
                                '**/*.json',
diff --git a/extension.json b/extension.json
new file mode 100644
index 0000000..809068a
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,51 @@
+{
+       "name": "ContactPage",
+       "version": "2.2",
+       "author": [
+               "Daniel Kinzler",
+               "Sam Reed"
+       ],
+       "url": "https://www.mediawiki.org/wiki/Extension:ContactPage";,
+       "descriptionmsg": "contactpage-desc",
+       "license-name": "GPL-2.0+",
+       "type": "specialpage",
+       "ExtensionMessagesFiles": {
+               "ContactPageAliases": "ContactPage.alias.php"
+       },
+       "MessagesDirs": {
+               "ContactPage": [
+                       "i18n"
+               ]
+       },
+       "config": {
+               "ContactConfig": {
+                       "default": {
+                               "RecipientUser": null,
+                               "SenderEmail": null,
+                               "SenderName": null,
+                               "RequireDetails": false,
+                               "IncludeIP": false,
+                               "DisplayFormat": "table",
+                               "RLModules": [],
+                               "RLStyleModules": [],
+                               "AdditionalFields": {
+                                       "Text": {
+                                               "label-message": "emailmessage",
+                                               "type": "textarea",
+                                               "rows": 20,
+                                               "cols": 80,
+                                               "required": true
+                                       }
+                               }
+                       }
+               }
+       },
+       "callback": "SpecialContact::onRegistration",
+       "SpecialPages": {
+               "Contact": "SpecialContact"
+       },
+       "AutoloadClasses": {
+               "SpecialContact": "ContactPage_body.php"
+       },
+       "manifest_version": 1
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/298084
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9017e93c9a59445e2c500fb7c01836f5675182d6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContactPage
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to