Paladox has uploaded a new change for review.

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

Change subject: Add grunt-jsonlint test
......................................................................

Add grunt-jsonlint test

This allows us to test json through npm.

Change-Id: I54d13169a93489a2abafb61656cc83df5c7277cb
---
M Gruntfile.js
M package.json
2 files changed, 18 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/59/249459/1

diff --git a/Gruntfile.js b/Gruntfile.js
index 5429ed7..2d81a17 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -2,6 +2,7 @@
 module.exports = function ( grunt ) {
        grunt.loadNpmTasks( 'grunt-contrib-jshint' );
        grunt.loadNpmTasks( 'grunt-jscs' );
+       grunt.loadNpmTasks( 'grunt-jsonlint' );
        grunt.loadNpmTasks( 'grunt-banana-checker' );
 
        grunt.initConfig( {
@@ -9,10 +10,14 @@
                        options: {
                                jshintrc: true
                        },
-                       all: '.'
+                       all: [
+                               '.',
+                               '**/.',
+                               '!node_modules/**'
+                       ]
                },
                jscs: {
-                       all: '.'
+                       all: '<%= jshint.all %>'
                },
                banana: {
                        options: {
@@ -24,8 +29,15 @@
                                'lib/i18n/',
                                'repo/i18n/'
                        ]
+               },
+               jsonlint: {
+                       all: [
+                               '*.json',
+                               '**/*.json',
+                               '!node_modules/**'
+                       ]
                }
        } );
 
-       grunt.registerTask( 'test', [ 'jshint', 'jscs', 'banana' ] );
+       grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] 
);
 };
diff --git a/package.json b/package.json
index d5477ce..888eabc 100644
--- a/package.json
+++ b/package.json
@@ -12,9 +12,10 @@
   "license": "GPL-2.0+",
   "devDependencies": {
     "grunt": "0.4.5",
-    "grunt-banana-checker": "0.4.0",
     "grunt-cli": "0.1.13",
+    "grunt-banana-checker": "0.4.0",
     "grunt-contrib-jshint": "0.11.3",
-    "grunt-jscs": "2.1.0"
+    "grunt-jscs": "2.1.0",
+    "grunt-jsonlint": "1.0.5"
   }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I54d13169a93489a2abafb61656cc83df5c7277cb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>

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

Reply via email to