broccoli-select

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i broccoli-select

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • mjackson