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

Add support for base #16

Closed
Dremora opened this issue Mar 18, 2014 · 1 comment
Closed

Add support for base #16

Dremora opened this issue Mar 18, 2014 · 1 comment

Comments

@Dremora
Copy link

Dremora commented Mar 18, 2014

The following piece of code treats app folder as a base, correctly preserving folder structure in dist:

gulp.src(['app/*.coffee', 'app/controllers/**/*.coffee'], {
  base: 'app'
}).pipe(watch(function(files) {
 files.pipe(coffee({bare: true}).on('error', gutil.log))
  .pipe(gulp.dest('dist')));
}));

However, there doesn't seem to be a way to keep this behavior when using glob (I want to keep track of new files):

watch({glob: ['app/*.coffee', 'app/controllers/**/*.coffee'],
  base: 'app'},  // doesn't work
 function(files) {
 files.pipe(coffee({bare: true}).on('error', gutil.log))
  .pipe(gulp.dest('dist')));
});
@floatdrop
Copy link
Owner

Thanks for pointing that out!

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