Paladox has uploaded a new change for review.
https://gerrit.wikimedia.org/r/276766
Change subject: Add npm entry point and add phplint to composer
......................................................................
Add npm entry point and add phplint to composer
Change-Id: I8cd1001d5f52b14ac0e3f7a1f1827a9c60a6d8c0
---
A Gruntfile.js
M composer.json
A package.json
3 files changed, 39 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Mailgun
refs/changes/66/276766/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/composer.json b/composer.json
index e35bb5c..d4ec90e 100644
--- a/composer.json
+++ b/composer.json
@@ -3,6 +3,14 @@
"require": {
"mailgun/mailgun-php": "1.7.2"
},
+ "require-dev": {
+ "jakub-onderka/php-parallel-lint": "0.9.2"
+ },
+ "scripts": {
+ "test": [
+ "parallel-lint . --exclude vendor"
+ ]
+ },
"prepend-autoloader": false,
"optimize-autoloader": true
}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..41cecca
--- /dev/null
+++ b/package.json
@@ -0,0 +1,11 @@
+{
+ "scripts": {
+ "test": "grunt test"
+ },
+ "devDependencies": {
+ "grunt": "0.4.5",
+ "grunt-cli": "0.1.13",
+ "grunt-banana-checker": "0.4.0",
+ "grunt-jsonlint": "1.0.7"
+ }
+}
--
To view, visit https://gerrit.wikimedia.org/r/276766
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8cd1001d5f52b14ac0e3f7a1f1827a9c60a6d8c0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Mailgun
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits