broccoli-static-compiler
Broccoli compiler to copy static files
Last updated 4 years ago by joliss .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install broccoli-static-compiler 
SYNC missed versions from official npm registry.

broccoli-static-compiler

This plugin is deprecated. Use broccoli-funnel instead.

Pick files out of a tree, optionally moving them.

(The package name is for historical reasons. We might change it when we hit 1.0.)

Installation

npm install --save-dev broccoli-static-compiler

Usage Example

var pickFiles = require('broccoli-static-compiler');
var imagesTree = pickFiles(sourceTree, {
  srcDir: '/todomvc',
  files: ['**/*.png', '**/*.jpg'],
  destDir: '/assets'
});

This would copy /todomvc/icons/check-mark.png to /assets/icons/check-mark.png.

Options

srcDir (required), destDir (required)

The destDir directory will be created, and all files and directories inside of srcDir will be recursively copied into destDir.

files (optional)

A list of glob patterns. If provided, instead of copying all files, only files matched by any of the patterns will be copied. You must only specify files, not directories, in this list.

Current Tags

  • 0.2.2                                ...           latest (4 years ago)

4 Versions

  • 0.2.2                                ...           4 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 2
Last Month 39
Dependencies (4)
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |