Ricordisamoa has uploaded a new change for review.
https://gerrit.wikimedia.org/r/243145
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
Change-Id: Ic7cfcf7ae2ac9f8e785d7b1f0475c3419d284bda
---
A Gruntfile.js
M package.json
2 files changed, 24 insertions(+), 3 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseQuality
refs/changes/45/243145/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 b0e4b3c..7daf7af 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "WikidataQuality",
"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/243145
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic7cfcf7ae2ac9f8e785d7b1f0475c3419d284bda
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQuality
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits