aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/docsite.js
diff options
context:
space:
mode:
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..2543662 100644
--- a/tasks/docsite.js
+++ b/tasks/docsite.js
@@ -19,6 +19,7 @@ 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);
@@ -56,9 +57,9 @@ 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/**';
- });
+ var docsPaths = Object.keys(bowerJson.dependencies).map(function(c) {
+ return stagingPath + '/' + c + '/docs/**';
+ });
return gulp.src(docsPaths, {base: stagingPath})
.pipe(rename(function (path) {