Skip to content

mjackson/broccoli-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

broccoli-select

A Broccoli plugin that enables greater flexibility when selecting files based on glob patterns.

Usage

var select = require('broccoli-select');

var templatesTree = select('templates', {

  // A list of glob patterns of files to select as input.
  // May be ommitted to select all files in the input tree.
  // May also be just "files" instead of "acceptFiles".
  acceptFiles: [ '**/*.hbs' ],

  // A list of glob patterns that will not be included as input. 
  rejectFiles: [ 'ignore-me.hbs' ],

  // The output directory for all selected files.
  outputDir: '/files/go/here'

});

License

MIT

About

A Broccoli plugin for selecting files based on glob patterns

Resources

Stars

Watchers

Forks

Packages

No packages published