Umherirrender has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/371610 )

Change subject: Add grunt-jsonlint and grunt-banana-checker
......................................................................

Add grunt-jsonlint and grunt-banana-checker

jsonlint and banana-checker will test for valid i18n files

Bug: T94547
Change-Id: Id10e1b3f74273b9ec441a94f987c162891476e40
---
A .gitignore
A Gruntfile.js
M i18n/qqq.json
A package.json
4 files changed, 36 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PhpTagsSPARQL 
refs/changes/10/371610/1

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..39cd98b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/node_modules/
+vendor/
+composer.lock
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..4337316
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,21 @@
+/*jshint node:true */
+module.exports = function ( grunt ) {
+       grunt.loadNpmTasks( 'grunt-banana-checker' );
+       grunt.loadNpmTasks( 'grunt-jsonlint' );
+
+       grunt.initConfig( {
+               banana: {
+                       all: 'i18n/'
+               },
+               jsonlint: {
+                       all: [
+                               '**/*.json',
+                               '!node_modules/**',
+                               '!vendor/**'
+                       ]
+               }
+       } );
+
+       grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
+       grunt.registerTask( 'default', 'test' );
+};
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 9bb755e..15495cf 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -4,5 +4,5 @@
                        "pastakhov"
                ]
        },
-       "phptagssparql-desc": 
"{{desc|name=PhpTagsSPARQL|url=http://www.mediawiki.org/wiki/Extension:PhpTags_SPARQL}}";
+       "phptagssparql-desc": 
"{{desc|name=PhpTagsSPARQL|url=https://www.mediawiki.org/wiki/Extension:PhpTags_SPARQL}}";
 }
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..10fa9bc
--- /dev/null
+++ b/package.json
@@ -0,0 +1,11 @@
+{
+       "private": true,
+       "scripts": {
+               "test": "grunt test"
+       },
+       "devDependencies": {
+               "grunt": "1.0.1",
+               "grunt-banana-checker": "0.6.0",
+               "grunt-jsonlint": "1.1.0"
+       }
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id10e1b3f74273b9ec441a94f987c162891476e40
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PhpTagsSPARQL
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <umherirrender_de...@web.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to