From: Manolo Carrasco Date: Wed, 7 Oct 2015 05:42:24 +0000 (+0200) Subject: Regexp for bowerComponents variable X-Git-Tag: 0.3.0-beta10~2^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ad6104333543e64a594d7865a4eeeb7140382cca;p=vaadin-core.git Regexp for bowerComponents variable --- diff --git a/tasks/docsite.js b/tasks/docsite.js index 4f8be17..4440211 100644 --- a/tasks/docsite.js +++ b/tasks/docsite.js @@ -69,6 +69,8 @@ config.components.forEach(function (n) { .pipe(addsrc(componentDemo + '/*-embed.html')) // Remove Analytics .pipe(replace(/^.*\s*?\n?/img, '')) + // Adjust bowerComponents variable in common.html + .pipe(replace(/(bowerComponents *= *)'..\/..\/'/, "$1'../bower_components/'")) // Adjust location of the current component in bower_components (..) .pipe(replace(/(src|href)=("|')\.\.(\/\w)/mg, '$1=$2../bower_components/' + n + '$3')) // Adjust location of dependencies in bower_components (../..) @@ -77,7 +79,6 @@ config.components.forEach(function (n) { .pipe(replace(/^.*