]> source.dussan.org Git - vaadin-core.git/commitdiff
Use correct bower.json depending on version pr67/r5
authorTeemu Pöntelin <teemu@vaadin.com>
Tue, 30 Aug 2016 09:13:49 +0000 (12:13 +0300)
committerTeemu Pöntelin <teemu@vaadin.com>
Tue, 30 Aug 2016 09:13:49 +0000 (12:13 +0300)
tasks/docsite.js

index 2543662c37ae40a2334bbcb8db4ed8f8fde0420b..4c182330a70cbce8b7cb8cc8a252a93a073a22a6 100644 (file)
@@ -19,7 +19,6 @@ var stagingPath = stagingBasePath + '/' + version;
 var modify = require('gulp-modify');
 var rootZip = 'target/';
 var fileZip = 'docsite.zip';
-var bowerJson = require('../bower.json');
 
 gulp.task('cdn:docsite:clean', function() {
   fs.removeSync(docPath);
@@ -57,6 +56,7 @@ gulp.task('cdn:docsite:core-elements-integrations', function() {
 });
 
 gulp.task('cdn:docsite:core-elements-elements', ['cdn:docsite:bower_components'], function() {
+  const bowerJson = require('../' + stagingPath + '/bower.json');
   var docsPaths = Object.keys(bowerJson.dependencies).map(function(c) {
     return stagingPath + '/' + c + '/docs/**';
   });