Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assemble.src('**/*.hbs') ignores duplicate named files in different directories. #757

Closed
pbaldwin opened this issue Aug 17, 2015 · 1 comment

Comments

@pbaldwin
Copy link

Say I have a directory structure like this:

pages/index.hbs
pages/apples/index.hbs
pages/oranges/index.hbs

and an assemble file like this:

var assemble = require('assemble');
var debug = require('gulp-debug');

assemble.task('html', function () {
  assemble.src('pages/**/*.hbs')
    .pipe(debug())
    .pipe(assemble.dest('dist/');
});

If I run assemble html gulp-debug will log 'pages/oranges/index.hbs' and '1 items', while my dist directory only contains 'pages/oranges/index.hbs'.

I don't get the same result from gulp.src or when I set assemble.enable('minimal config');. My guess from looking through the source is that there might be something happening in event-streams that throws out duplicate named files? I dunno, though.

@jonschlinkert
Copy link
Member

This should be resolved on the dev branch, since we no longer cache files by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants