jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/349505 )
Change subject: build: add grunt-contrib-jshint
......................................................................
build: add grunt-contrib-jshint
See T119973
Change-Id: I7886c101690de5748b019c5d1b60aa2d5fe56bc4
---
M Gruntfile.js
M package.json
2 files changed, 11 insertions(+), 2 deletions(-)
Approvals:
jenkins-bot: Verified
Jforrester: Looks good to me, approved
diff --git a/Gruntfile.js b/Gruntfile.js
index 62dd899..1fddf69 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -2,11 +2,19 @@
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
+ grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
banana: {
all: 'i18n/'
+ },
+ jshint: {
+ all: [
+ '**/*.js',
+ '!node_modules/**',
+ '!vendor/**'
+ ]
},
jsonlint: {
all: [
@@ -23,6 +31,6 @@
}
} );
- grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'stylelint' ] );
+ grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jshint',
'stylelint' ] );
grunt.registerTask( 'default', 'test' );
};
diff --git a/package.json b/package.json
index cf68442..cc4e80f 100644
--- a/package.json
+++ b/package.json
@@ -5,8 +5,9 @@
},
"devDependencies": {
"grunt": "0.4.5",
- "grunt-cli": "0.1.13",
"grunt-banana-checker": "0.4.0",
+ "grunt-cli": "0.1.13",
+ "grunt-contrib-jshint": "1.1.0",
"grunt-jsonlint": "1.0.7",
"grunt-stylelint": "0.6.0",
"stylelint-config-wikimedia": "0.4.1"
--
To view, visit https://gerrit.wikimedia.org/r/349505
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7886c101690de5748b019c5d1b60aa2d5fe56bc4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileApp
Gerrit-Branch: master
Gerrit-Owner: Hashar <[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