From 80a8929f513c508da49a347a2a52bef48c15fb2a Mon Sep 17 00:00:00 2001 From: Topher Fangio Date: Fri, 11 Dec 2015 12:17:03 -0600 Subject: [PATCH] docs: Fix gulp task causing duplicate demo files. If two demo directories began with the same name (like demoErrors and demoErrorsAdvanced), the gulp task would miscalculate the number and type of files causing duplicate files to appear in the source view and Codepen examples. Fix by ensuring we only match the proper directory. Closes #6254 --- scripts/gulp-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gulp-utils.js b/scripts/gulp-utils.js index 585b8ea333a..23ff51a6555 100644 --- a/scripts/gulp-utils.js +++ b/scripts/gulp-utils.js @@ -63,7 +63,7 @@ exports.readModuleDemos = function(moduleName, fileTasks) { css:[], html:[], js:[] }; - gulp.src(demoFolder.path + '**/*', { base: path.dirname(demoFolder.path) }) + gulp.src(demoFolder.path + '/**/*', { base: path.dirname(demoFolder.path) }) .pipe(fileTasks(demoId)) .pipe(through2.obj(function(file, enc, cb) { if (/index.html$/.test(file.path)) {