jenkins-bot has submitted this change and it was merged.
Change subject: Add grunt-jsonlint package
......................................................................
Add grunt-jsonlint package
This will allow us to run jsonlint in npm.
Change-Id: I9b2d2015789af756a8b91247979e821f8d427a46
---
M Gruntfile.js
M package.json
2 files changed, 11 insertions(+), 2 deletions(-)
Approvals:
Jdlrobson: Looks good to me, approved
jenkins-bot: Verified
diff --git a/Gruntfile.js b/Gruntfile.js
index 8b0cbb6..0ad9261 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -8,6 +8,7 @@
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-mkdir' );
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+ grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-jscs' );
grunt.loadNpmTasks( 'grunt-qunit-istanbul' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
@@ -103,10 +104,17 @@
},
banana: {
all: 'i18n/'
+ },
+ jsonlint: {
+ all: [
+ '*.json',
+ '**/*.json',
+ '!node_modules/**'
+ ]
}
} );
- grunt.registerTask( 'lint', [ 'jshint', 'jscs', 'banana' ] );
+ grunt.registerTask( 'lint', [ 'jshint', 'jscs', 'jsonlint', 'banana' ]
);
// grunt test will be run by npm test which will be run by Jenkins
// Do not execute qunit here, or other tasks that require full mediawiki
diff --git a/package.json b/package.json
index 4e2d867..c66e908 100644
--- a/package.json
+++ b/package.json
@@ -27,6 +27,7 @@
"grunt-notify": "0.4.1",
"grunt-contrib-watch": "0.6.1",
"grunt-lib-phantomjs-istanbul": "0.6.0",
- "grunt-qunit-istanbul":
"git+https://github.com/joakin/grunt-qunit-istanbul.git#prefix-url"
+ "grunt-qunit-istanbul":
"git+https://github.com/joakin/grunt-qunit-istanbul.git#prefix-url",
+ "grunt-jsonlint": "1.0.5"
}
}
--
To view, visit https://gerrit.wikimedia.org/r/249498
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9b2d2015789af756a8b91247979e821f8d427a46
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Paladox <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits