Jforrester has uploaded a new change for review.

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

Change subject: build: Add npm test for jsonlint and banana-checker
......................................................................

build: Add npm test for jsonlint and banana-checker

Change-Id: Iedf2d8cd406dba52ef1c58c13cbcc097a03cc72e
---
M .gitignore
A Gruntfile.js
A package.json
3 files changed, 50 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PronunciationRecording 
refs/changes/81/233181/1

diff --git a/.gitignore b/.gitignore
index 98b092a..188cf10 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+node_modules
 .svn
 *~
 *.kate-swp
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..d2885f6
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,30 @@
+/*!
+ * Grunt file
+ *
+ * @package PronunciationRecording
+ */
+
+/*jshint node:true */
+module.exports = function ( grunt ) {
+       grunt.loadNpmTasks( 'grunt-banana-checker' );
+       grunt.loadNpmTasks( 'grunt-contrib-watch' );
+       grunt.loadNpmTasks( 'grunt-jsonlint' );
+
+       grunt.initConfig( {
+               jsonlint: {
+                       all: 'i18n/*.json'
+               },
+               banana: {
+                       all: 'i18n/'
+               },
+               watch: {
+                       files: [
+                               '<%= jsonlint.all %>'
+                       ],
+                       tasks: 'test'
+               }
+       } );
+
+       grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
+       grunt.registerTask( 'default', 'test' );
+};
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..4e040f5
--- /dev/null
+++ b/package.json
@@ -0,0 +1,19 @@
+{
+  "name": "PronunciationRecording",
+  "version": "0.0.0",
+  "private": true,
+  "description": "Build tools for PronunciationRecording.",
+  "scripts": {
+    "test": "grunt test"
+  },
+  "repository": {
+    "type": "git",
+    "url": 
"https://gerrit.wikimedia.org/r/p/mediawiki/extensions/PronunciationRecording.git";
+  },
+  "devDependencies": {
+    "grunt": "0.4.5",
+    "grunt-banana-checker": "0.2.2",
+    "grunt-contrib-watch": "0.6.1",
+    "grunt-jsonlint": "1.0.4"
+  }
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iedf2d8cd406dba52ef1c58c13cbcc097a03cc72e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PronunciationRecording
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>

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

Reply via email to