summaryrefslogtreecommitdiffstats
path: root/tasks/docsite.js
diff options
context:
space:
mode:
authorSauli Tähkäpää <sauli.tahkapaa@outlook.com>2016-08-30 14:04:12 +0300
committerGitHub <noreply@github.com>2016-08-30 14:04:12 +0300
commit199891513f89d5ef1ef7c526f876a4a9de166a0a (patch)
treea51f7d14f0dd94c9b933446df53f28425e6cd99b /tasks/docsite.js
parentcb94ce56f1c9a95e6a77be1961bba5158837302c (diff)
parentac016539b77e41337c2751843b35c0a481a6390c (diff)
downloadvaadin-core-199891513f89d5ef1ef7c526f876a4a9de166a0a.tar.gz
vaadin-core-199891513f89d5ef1ef7c526f876a4a9de166a0a.zip
Merge pull request #67 from vaadin/fix/cdn-master
Improve cdn deployment of master versions
Diffstat (limited to 'tasks/docsite.js')
-rw-r--r--tasks/docsite.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/tasks/docsite.js b/tasks/docsite.js
index 50fb02e..4c18233 100644
--- a/tasks/docsite.js
+++ b/tasks/docsite.js
@@ -56,9 +56,10 @@ gulp.task('cdn:docsite:core-elements-integrations', function() {
});
gulp.task('cdn:docsite:core-elements-elements', ['cdn:docsite:bower_components'], function() {
- var docsPaths = config.coreElements.map(function(c) {
- return stagingPath + '/' + c + '/docs/**';
- });
+ const bowerJson = require('../' + stagingPath + '/bower.json');
+ var docsPaths = Object.keys(bowerJson.dependencies).map(function(c) {
+ return stagingPath + '/' + c + '/docs/**';
+ });
return gulp.src(docsPaths, {base: stagingPath})
.pipe(rename(function (path) {