From 2a8c0986c6150197e3c4e662c20e8b24d0944671 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 23 Jan 2019 16:05:05 +0100 Subject: [PATCH] MOBILE-2839 config: Copy config.json to www --- config/copy.config.js | 6 +++++- www/README.md | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/copy.config.js b/config/copy.config.js index 1da283e97..7f0f0686f 100644 --- a/config/copy.config.js +++ b/config/copy.config.js @@ -1,4 +1,4 @@ -// New copy task for font files +// New copy task for font files and config.json. module.exports = { // Override Ionic copyFonts task to exclude Roboto and Noto fonts. copyFonts: { @@ -8,5 +8,9 @@ module.exports = { copyFontAwesome: { src: ['{{ROOT}}/node_modules/font-awesome/fonts/**/*'], dest: '{{WWW}}/assets/fonts' + }, + copyConfig: { + src: ['{{ROOT}}/src/config.json'], + dest: '{{WWW}}/' } }; diff --git a/www/README.md b/www/README.md index 10422efc9..9f900647d 100644 --- a/www/README.md +++ b/www/README.md @@ -1 +1,3 @@ This folder only contains compiled code and assets. Please do not modify files in this folder, the app code is in the "src" folder. + +The config.json values are ignored by the app. This file is informative for Continous Integration processes used by Moodle HQ.