Paladox has uploaded a new change for review. https://gerrit.wikimedia.org/r/278575
Change subject: Add npm entry point ...................................................................... Add npm entry point Change-Id: I24de8f1016bba24f52ef3e5d3c8a2fae201ec50c --- M .gitignore A Gruntfile.js A package.json 3 files changed, 32 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CommentPages refs/changes/75/278575/1 diff --git a/.gitignore b/.gitignore index 98b092a..1689d7a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.svn *~ *.kate-swp .*.swp +node_modules/** 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/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/278575 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I24de8f1016bba24f52ef3e5d3c8a2fae201ec50c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CommentPages Gerrit-Branch: master Gerrit-Owner: Paladox <thomasmulhall...@yahoo.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits