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

Change subject: Add php-parallel-lint, grunt-jsonlint and grunt-banana-checker
......................................................................

Add php-parallel-lint, grunt-jsonlint and grunt-banana-checker

jsonlint and banana-checker will test for valid i18n files
php-lint will test for valid php files

Fixed spacing in extension.json

Change-Id: I8803fd5774ceeddc8a737844a5f932a011b7484a
---
A Gruntfile.js
M composer.json
M extension.json
A package.json
4 files changed, 40 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceWhoIsOnline 
refs/changes/81/394581/1

diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..ea67e84
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,19 @@
+module.exports = function ( grunt ) {
+       grunt.loadNpmTasks( 'grunt-jsonlint' );
+       grunt.loadNpmTasks( 'grunt-banana-checker' );
+
+       var conf = grunt.file.readJSON( 'extension.json' );
+       grunt.initConfig( {
+               banana: conf.MessagesDirs,
+               jsonlint: {
+                       all: [
+                               '**/*.json',
+                               '!node_modules/**',
+                               '!vendor/**'
+                       ]
+               }
+       } );
+
+       grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
+       grunt.registerTask( 'default', 'test' );
+};
diff --git a/composer.json b/composer.json
index 71de80d..0cd3cc0 100644
--- a/composer.json
+++ b/composer.json
@@ -8,5 +8,14 @@
                        "BlueSpice\\WhoIsOnline\\": "src",
                        "BlueSpice\\WhoIsOnline\\Tests\\": "tests/phpunit"
                }
+       },
+       "require-dev": {
+               "jakub-onderka/php-parallel-lint": "0.9.2",
+               "jakub-onderka/php-console-highlighter": "0.3.2"
+       },
+       "scripts": {
+               "test": [
+                       "parallel-lint . --exclude vendor --exclude 
node_modules"
+               ]
        }
 }
diff --git a/extension.json b/extension.json
index b347bf0..c3588b0 100644
--- a/extension.json
+++ b/extension.json
@@ -1,7 +1,7 @@
 {
        "name": "BlueSpiceWhoIsOnline",
        "version": "3.0.0-alpha",
-       "license-name": "GPL-3.0",
+       "license-name": "GPL-3.0",
        "url": "https://help.bluespice.com/index.php/WhoIsOnline";,
        "author": "Markus Glaser",
        "descriptionmsg": "bs-whoisonline-desc",
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/394581
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8803fd5774ceeddc8a737844a5f932a011b7484a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceWhoIsOnline
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