Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/263047
Change subject: Add jsonlint to 'npm test'
......................................................................
Add jsonlint to 'npm test'
Change-Id: Id021bb07f98017c88a57f6af38d5a4f9e566879b
---
M Gruntfile.js
M package.json
2 files changed, 9 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AntiSpoof
refs/changes/47/263047/1
diff --git a/Gruntfile.js b/Gruntfile.js
index ca899de..44c7d56 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -7,12 +7,19 @@
/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' );
+ grunt.loadNpmTasks( 'grunt-jsonlint' );
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 8efa2ef..7fc7b79 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
"devDependencies": {
"grunt": "0.4.5",
"grunt-cli": "0.1.13",
+ "grunt-jsonlint": "1.0.7",
"grunt-banana-checker": "0.4.0"
}
}
--
To view, visit https://gerrit.wikimedia.org/r/263047
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id021bb07f98017c88a57f6af38d5a4f9e566879b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/AntiSpoof
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits