Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/262704
Change subject: Add jsonlint to npm test command
......................................................................
Add jsonlint to npm test command
Bug: T63599
Change-Id: I8f1d9c4f2caa9575555baa5015e85d7f50525b98
---
M Gruntfile.js
M package.json
2 files changed, 9 insertions(+), 1 deletion(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContributionTracking
refs/changes/04/262704/1
diff --git a/Gruntfile.js b/Gruntfile.js
index beb732b..7db22bd 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -9,6 +9,7 @@
'use strict';
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+ grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.initConfig( {
banana: {
all: ['i18n/']
@@ -18,9 +19,15 @@
'**/*.js',
'!node_modules/**'
]
+ },
+ jsonlint: {
+ all: [
+ '**/*.json',
+ '!node_modules/**'
+ ]
}
} );
- grunt.registerTask( 'test', [ 'jshint', 'banana' ] );
+ grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};
diff --git a/package.json b/package.json
index e43f212..f2b1966 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
"grunt": "0.4.5",
"grunt-cli": "0.1.13",
"grunt-contrib-jshint": "0.11.3",
+ "grunt-jsonlint": "1.0.7",
"grunt-banana-checker": "0.4.0"
}
}
--
To view, visit https://gerrit.wikimedia.org/r/262704
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8f1d9c4f2caa9575555baa5015e85d7f50525b98
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContributionTracking
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits