Paladox has uploaded a new change for review.
https://gerrit.wikimedia.org/r/275583
Change subject: Add jsonlint to npm
......................................................................
Add jsonlint to npm
Change-Id: I0f035d5a1252894b4ffc8f8a75313ff950eab5ea
---
M Gruntfile.js
M package.json
2 files changed, 12 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CustomData
refs/changes/83/275583/1
diff --git a/Gruntfile.js b/Gruntfile.js
index 4923568..c372e37 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -6,14 +6,21 @@
/*jshint node:true */
module.exports = function ( grunt ) {
- 'use strict';
+ grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
+
grunt.initConfig( {
banana: {
- all: ['i18n/']
+ 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 4262a8e..6634d5b 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.4.0"
+ "grunt-banana-checker": "0.4.0",
+ "grunt-jsonlint": "1.0.7"
}
}
--
To view, visit https://gerrit.wikimedia.org/r/275583
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0f035d5a1252894b4ffc8f8a75313ff950eab5ea
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CustomData
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits