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

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

Changed composer to use tabs

Change-Id: I40ac918ab97533ba3efce508f24461ea8cab5515
---
A .gitignore
A Gruntfile.js
M composer.json
A package.json
4 files changed, 53 insertions(+), 7 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceTagCloud 
refs/changes/87/394587/1

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..db8a779
--- /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..c3a2f2b
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,23 @@
+module.exports = function ( grunt ) {
+       grunt.loadNpmTasks( 'grunt-jsonlint' );
+       grunt.loadNpmTasks( 'grunt-banana-checker' );
+
+       grunt.initConfig( {
+               banana: {
+                       all: [
+                               'Canvas3DTagCloud/i18n/',
+                               'TagCloud/i18n/'
+                       ]
+               },
+               jsonlint: {
+                       all: [
+                               '**/*.json',
+                               '!node_modules/**',
+                               '!vendor/**'
+                       ]
+               }
+       } );
+
+       grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
+       grunt.registerTask( 'default', 'test' );
+};
diff --git a/composer.json b/composer.json
index 9f4a5b1..b203d65 100644
--- a/composer.json
+++ b/composer.json
@@ -1,9 +1,18 @@
 {
-  "name": "mediawiki/blue-spice-tag-cloud",
-  "type": "mediawiki-extension",
-  "description": "Displays various tag clouds",
-  "license": "GPL-3.0",
-  "require": {
-    "composer/installers": "~1.0"
-  }
+       "name": "mediawiki/blue-spice-tag-cloud",
+       "type": "mediawiki-extension",
+       "description": "Displays various tag clouds",
+       "license": "GPL-3.0",
+       "require": {
+               "composer/installers": "~1.0"
+       },
+       "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/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/394587
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I40ac918ab97533ba3efce508f24461ea8cab5515
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceTagCloud
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>

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

Reply via email to