Legoktm has uploaded a new change for review.

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

Change subject: build: Adding configuration for jsonlint
......................................................................

build: Adding configuration for jsonlint

Change-Id: Icd9b647e2f2dad870f8afaf605da3b6b2c04922c
---
M Gruntfile.js
M package.json
2 files changed, 12 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BetaFeatures 
refs/changes/73/217773/1

diff --git a/Gruntfile.js b/Gruntfile.js
index 3bfb92a..6636a91 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -6,13 +6,21 @@
 
 /*jshint node:true */
 module.exports = function ( grunt ) {
+       grunt.loadNpmTasks( 'grunt-jsonlint' );
        grunt.loadNpmTasks( 'grunt-banana-checker' );
        grunt.initConfig( {
                banana: {
                        all: ['i18n/']
-               }
+               },
+               jsonlint: {
+                all: [
+                    '**/*.json',
+                    '!node_modules/**'
+                ]
+            }
+    
        } );
 
-       grunt.registerTask( 'test', [ 'banana' ] );
+       grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
        grunt.registerTask( 'default', 'test' );
 };
diff --git a/package.json b/package.json
index 5f06751..d2a0d26 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
   "devDependencies": {
     "grunt": "0.4.5",
     "grunt-cli": "0.1.13",
-    "grunt-banana-checker": "0.2.2"
+    "grunt-banana-checker": "0.2.2",
+    "grunt-jsonlint": "1.0.4"
   }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icd9b647e2f2dad870f8afaf605da3b6b2c04922c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BetaFeatures
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

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

Reply via email to