D3r1ck01 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/373410 )

Change subject: Add Gruntfile, Hook and Setup file for the extension
......................................................................

Add Gruntfile, Hook and Setup file for the extension

* Added a Gruntfile to do some JS-based linting tests

* Hook to be used to send emails will be defined in
  SendGridHooks.php.

* Loading the extension setup in the SendGrid.php based
  on the MW version.

Change-Id: Ibec5fb30cade5fe9ef170bfcd1c7a46c74283a35
---
A Gruntfile.js
A SendGrid.php
A SendGridHooks.php
M package.json
4 files changed, 31 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SendGrid 
refs/changes/10/373410/1

diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..7756e75
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,20 @@
+/*jshint node:true */
+module.exports = function ( grunt ) {
+       grunt.loadNpmTasks( 'grunt-jsonlint' );
+       grunt.loadNpmTasks( 'grunt-banana-checker' );
+
+       grunt.initConfig( {
+               banana: {
+                       all: 'i18n/'
+               },
+               jsonlint: {
+                       all: [
+                               '**/*.json',
+                               '!node_modules/**'
+                       ]
+               }
+       } );
+
+       grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
+       grunt.registerTask( 'default', 'test' );
+};
diff --git a/SendGrid.php b/SendGrid.php
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/SendGrid.php
diff --git a/SendGridHooks.php b/SendGridHooks.php
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/SendGridHooks.php
diff --git a/package.json b/package.json
index e69de29..3b4b5f0 100644
--- a/package.json
+++ b/package.json
@@ -0,0 +1,11 @@
+{
+  "private": true,
+  "scripts": {
+    "test": "grunt test"
+  },
+  "devDependencies": {
+    "grunt": "1.0.1",
+    "grunt-banana-checker": "0.4.0",
+    "grunt-jsonlint": "1.0.7"
+  }
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibec5fb30cade5fe9ef170bfcd1c7a46c74283a35
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SendGrid
Gerrit-Branch: master
Gerrit-Owner: D3r1ck01 <alangider...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to