jenkins-bot has submitted this change and it was merged. Change subject: Switch "npm test" to Grunt ......................................................................
Switch "npm test" to Grunt Needed for integration with other Grunt-based linters such as grunt-banana-checker, etc. Like commit 4e269b733f60645ed88c035abd4e09258a385e8d for mediawiki/extensions/Wikibase and commit 08bbfb83c2f91aa14fd6e501a7cc6c85e63b284d for mediawiki/extensions/WikibaseQuality Change-Id: Ie28f4156b3c478995bd4621fe155822abda117aa --- A Gruntfile.js M package.json 2 files changed, 24 insertions(+), 3 deletions(-) Approvals: JanZerebecki: Looks good to me, approved Jeroen De Dauw: Looks good to me, but someone else must approve jenkins-bot: Verified diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..d931395 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,19 @@ +/* jshint node: true, strict: false */ +module.exports = function ( grunt ) { + grunt.loadNpmTasks( 'grunt-contrib-jshint' ); + grunt.loadNpmTasks( 'grunt-jscs' ); + + grunt.initConfig( { + jshint: { + options: { + jshintrc: true + }, + all: '.' + }, + jscs: { + all: '.' + } + } ); + + grunt.registerTask( 'test', [ 'jshint', 'jscs' ] ); +}; diff --git a/package.json b/package.json index d260b86..cf665df 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "WikibaseQualityConstraints", "version": "0.0.0", "scripts": { - "test": "jshint . && jscs ." + "test": "grunt test" }, "repository": { "type": "git", @@ -11,7 +11,9 @@ "author": "BP2014N1", "license": "GPL-2.0+", "devDependencies": { - "jscs": ">=2.0", - "jshint": "" + "grunt": "0.4.5", + "grunt-cli": "0.1.13", + "grunt-contrib-jshint": "0.11.3", + "grunt-jscs": "2.1.0" } } -- To view, visit https://gerrit.wikimedia.org/r/243485 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ie28f4156b3c478995bd4621fe155822abda117aa Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints Gerrit-Branch: master Gerrit-Owner: Ricordisamoa <ricordisa...@openmailbox.org> Gerrit-Reviewer: JanZerebecki <jan.wikime...@zerebecki.de> Gerrit-Reviewer: Jeroen De Dauw <jeroended...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits