Ricordisamoa has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/237038

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.

Change-Id: I01a97f3c3e6078228cc087e6d4f429e5a60deb2a
---
A Gruntfile.js
M package.json
2 files changed, 24 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/38/237038/1

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 c227e81..b8ff7b5 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
        "name": "Wikibase",
        "version": "0.0.0",
        "scripts": {
-               "test": "jshint . && jscs ."
+               "test": "grunt test"
        },
        "repository": {
                "type": "git",
@@ -11,7 +11,9 @@
        "author": "The Wikidata team",
        "license": "GPL-2.0+",
        "devDependencies": {
-               "jscs": "~2.1.0",
-               "jshint": "~2.8.0"
+               "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/237038
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I01a97f3c3e6078228cc087e6d4f429e5a60deb2a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to