jenkins-bot has submitted this change and it was merged. Change subject: Add npm entry point, And add phplint to composer ......................................................................
Add npm entry point, And add phplint to composer Change-Id: I77aff467108aa3f9cf127f5b39d4ee7a8de51483 --- M .gitignore A Gruntfile.js M composer.json A package.json 4 files changed, 40 insertions(+), 2 deletions(-) Approvals: Hashar: Looks good to me, approved jenkins-bot: Verified diff --git a/.gitignore b/.gitignore index d842584..56f4639 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,8 @@ *~ *.kate-swp -!.gitignore -!.gitreview !.travis.yml +node_modules/** vendor/ composer.lock \ No newline at end of file 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 3b07f47..9df9a64 100644 --- a/composer.json +++ b/composer.json @@ -42,5 +42,13 @@ }, "replace": { "jeroen-de-dauw/mediawiki-github": "*" + }, + "require-dev": { + "jakub-onderka/php-parallel-lint": "0.9.2" + }, + "scripts": { + "test": [ + "parallel-lint . --exclude vendor" + ] } } 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/276272 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I77aff467108aa3f9cf127f5b39d4ee7a8de51483 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/GitHub Gerrit-Branch: master Gerrit-Owner: Paladox <thomasmulhall...@yahoo.com> Gerrit-Reviewer: Hashar <has...@free.fr> Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Paladox <thomasmulhall...@yahoo.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits