summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2015-10-07 07:42:24 +0200
committerManolo Carrasco <manolo@apache.org>2015-10-07 08:02:08 +0200
commitad6104333543e64a594d7865a4eeeb7140382cca (patch)
tree4f040015c8a93763d63a7d519e5b4cb0534b2d83 /tasks
parentdb56a46d1aaa739dbeec4239220ac45a7d114dea (diff)
downloadvaadin-core-ad6104333543e64a594d7865a4eeeb7140382cca.tar.gz
vaadin-core-ad6104333543e64a594d7865a4eeeb7140382cca.zip
Regexp for bowerComponents variable
Diffstat (limited to 'tasks')
-rw-r--r--tasks/docsite.js3
1 files changed, 2 insertions, 1 deletions
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(/^.*<script.*?ga\.js[\"'].*?<\/script>\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(/^.*<link.*demo.css.*\n/im, ''))
// Remove table of contents
.pipe(replace(/^.*table-of-contents.html.*\n/im, ''))
-
.pipe(gulp.dest(componentDocsite));
});
});