build: Re-use MessageDirs in banana conf

Change-Id: I459613ec89ba342a32410061b1a9b04171544cdd
This commit is contained in:
Ed Sanders 2017-01-23 13:39:21 +00:00
parent 1529b4f352
commit 24864a36bd

View file

@ -1,5 +1,7 @@
/* eslint-env node */
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-eslint' );
@ -18,12 +20,7 @@ module.exports = function ( grunt ) {
'!node_modules/**'
]
},
banana: {
all: [
'i18n/',
'**/i18n/'
]
},
banana: conf.MessagesDirs,
jsonlint: {
all: [
'*.json',