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: Ibd4c0000ea3b698b834ab6a1e83c2f0dbd6253a0
---
A Gruntfile.js
M package.json
2 files changed, 25 insertions(+), 4 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 b7ea5e1..dc9d960 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
        "name": "WikibaseQualityExternalValidation",
        "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": "",
-               "jshint": ""
+               "grunt": "0.4.5",
+               "grunt-cli": "0.1.13",
+               "grunt-contrib-jshint": "0.11.3",
+               "grunt-jscs": "2.1.0"
        }
-}
\ No newline at end of file
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/243486
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibd4c0000ea3b698b834ab6a1e83c2f0dbd6253a0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQualityExternalValidation
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

Reply via email to