jenkins-bot has submitted this change and it was merged.
Change subject: build: Adding configuration for jsonlint
......................................................................
build: Adding configuration for jsonlint
Change-Id: Icd9b647e2f2dad870f8afaf605da3b6b2c04922c
---
M Gruntfile.js
M package.json
2 files changed, 10 insertions(+), 2 deletions(-)
Approvals:
Jforrester: Looks good to me, approved
jenkins-bot: Verified
diff --git a/Gruntfile.js b/Gruntfile.js
index 3bfb92a..2806b05 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -6,13 +6,20 @@
/*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: merged
Gerrit-Change-Id: Icd9b647e2f2dad870f8afaf605da3b6b2c04922c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/BetaFeatures
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits