From fbd1c68323982dce9cb6191a0ad8b91e9111d1f7 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Mon, 18 Sep 2023 19:48:01 +0100 Subject: [PATCH] build: Use conf.MessageDirs for banana path config Rather than configuring manually, re-use the specification in the repo's extension.json file, like we do elsewhere; this way, if we add further i18n files in future, or change their paths, we won't need to update this configuration. Change-Id: I3975959c680a0ba789fe65b80506d3c0ed8a9724 --- Gruntfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 7f090777..e8ef42a3 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,5 +1,7 @@ /* eslint-env node */ module.exports = function ( grunt ) { + var conf = grunt.file.readJSON( 'extension.json' ); + grunt.loadNpmTasks( 'grunt-eslint' ); grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.loadNpmTasks( 'grunt-stylelint' ); @@ -14,9 +16,7 @@ module.exports = function ( grunt ) { '!{lib,vendor,node_modules}/**' ] }, - banana: { - all: 'i18n/' - }, + banana: conf.MessagesDirs, stylelint: { all: [ '**/*.{css,less}',