Aude has uploaded a new change for review. https://gerrit.wikimedia.org/r/268421
Change subject: Add grunt task for tests [WIP] ...................................................................... Add grunt task for tests [WIP] Bug: T125837 Change-Id: Ic436e319222cca6955824ba2a093c49cadc21c68 --- M Gruntfile.js M package.json 2 files changed, 13 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikidata/build-resources refs/changes/21/268421/1 diff --git a/Gruntfile.js b/Gruntfile.js index d3fd93e..6eed8db 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -2,7 +2,16 @@ module.exports = function ( grunt ) { + grunt.loadNpmTasks( 'grunt-contrib-clean' ); + grunt.loadNpmTasks( 'grunt-exec' ); + grunt.loadNpmTasks( 'grunt-jsonlint' ); + grunt.initConfig( { + jsonlint: { + all: [ + '*.json' + ] + }, clean: { build: { src: [ @@ -27,10 +36,9 @@ } } ); - grunt.loadNpmTasks( 'grunt-exec' ); - grunt.loadNpmTasks( 'grunt-contrib-clean' ); grunt.loadTasks( 'build/tasks' ); + grunt.registerTask( 'test', [ 'jsonlint' ] ); grunt.registerTask( 'uninstall', [ 'clean:build' ] ); grunt.registerTask( 'install', [ 'clean:build', 'exec:install' ] ); grunt.registerTask( 'branch', [ 'uninstall', 'updatecomposer', 'exec:install' ] ); diff --git a/package.json b/package.json index d67613b..76e11e4 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,9 @@ }, "devDependencies": { "grunt": "~0.4.5", - "grunt-contrib-clean": "~0.6.0", "grunt-cli": "~0.1.13", - "grunt-exec": "~0.4.6" + "grunt-contrib-clean": "~0.6.0", + "grunt-exec": "~0.4.6", + "grunt-jsonlint": "^1.0.7" } } -- To view, visit https://gerrit.wikimedia.org/r/268421 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic436e319222cca6955824ba2a093c49cadc21c68 Gerrit-PatchSet: 1 Gerrit-Project: wikidata/build-resources Gerrit-Branch: master Gerrit-Owner: Aude <aude.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits