]> source.dussan.org Git - vaadin-core.git/commitdiff
Regexp for bowerComponents variable
authorManolo Carrasco <manolo@apache.org>
Wed, 7 Oct 2015 05:42:24 +0000 (07:42 +0200)
committerManolo Carrasco <manolo@apache.org>
Wed, 7 Oct 2015 06:02:08 +0000 (08:02 +0200)
tasks/docsite.js

index 4f8be17fc552c001bc4f9b793a88621c8de109cc..4440211f624819d2e303ec54844628d11460fe95 100644 (file)
@@ -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));
   });
 });