layouts icon indicating copy to clipboard operation
layouts copied to clipboard

Remove layouts when in source directory?

Open webketje opened this issue 1 year ago • 0 comments

What happens when the directory option is set inside the metalsmith.source(), eg.

metalsmith
  .source('src')
  .use(layouts({
    directory: 'src/layouts'
  }))
  // currently requires @metalsmith/remove?
  .use(remove('layouts'))

There is a limited set of cases where removing the layouts may not be desirable (eg. a design system that needs to show the source templates)

Resolution of this issue:

  • Add a test case
  • Add an option that defaults to current behavior for non-semver breaking release

webketje avatar Oct 03 '23 15:10 webketje