Skip to content

Commit

Permalink
docs: Fix gulp task causing duplicate demo files.
Browse files Browse the repository at this point in the history
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 angular#6254
  • Loading branch information
topherfangio authored and ThomasBurleson committed Dec 13, 2015
1 parent 16486db commit 80a8929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gulp-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 80a8929

Please sign in to comment.