GithubHelp home page GithubHelp logo

trek / broccoli-static-compiler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joliss/broccoli-static-compiler

0.0 3.0 0.0 134 KB

This Broccoli compiler copies static files.

License: MIT License

broccoli-static-compiler's Introduction

broccoli-static-compiler

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.

broccoli-static-compiler's People

Contributors

ericf avatar joliss avatar linstula avatar quaertym avatar rwjblue avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.