From fb848faf0f53757fcb4e1a4e359edf35b3b8fa8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n?= Date: Tue, 19 Sep 2017 21:31:39 +0200 Subject: [PATCH] Allow more than 1 include path per lib version Better error handling when no path is defined (=No crash) --- app.js | 10 +++++++++- static/changelog.html | 5 +++++ static/compiler.js | 7 +++++-- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 9a8ee7e21..20299ee56 100755 --- a/app.js +++ b/app.js @@ -185,7 +185,15 @@ function ClientOptionsHandler(fileSources) { _.each(listedVersions.split(':'), function (version) { libs[lib].versions[version] = {}; libs[lib].versions[version].version = compilerProps("libs." + lib + '.versions.' + version + '.version'); - libs[lib].versions[version].path = compilerProps("libs." + lib + '.versions.' + version + '.path'); + libs[lib].versions[version].path = []; + var listedIncludes = compilerProps("libs." + lib + '.versions.' + version + '.path'); + if (listedIncludes) { + _.each(listedIncludes.split(':'), function(path) { + libs[lib].versions[version].path.push(path); + }); + } else { + logger.warn("No paths found for " + lib + " version " + version); + } }); } else { logger.warn("No versions found for " + lib + " library"); diff --git a/static/changelog.html b/static/changelog.html index 64d53edb5..3ba429262 100644 --- a/static/changelog.html +++ b/static/changelog.html @@ -1,5 +1,10 @@
To see smaller changes, you can visit our commits log +

19th September 2017

+

14th August 2017