An open API service indexing awesome lists of open source software.

https://github.com/assemble/assemble-middleware-add

Add files to your Assemble file stream.
https://github.com/assemble/assemble-middleware-add

Last synced: about 1 year ago
JSON representation

Add files to your Assemble file stream.

Awesome Lists containing this project

README

          

# assemble-middleware-add [![NPM version](https://badge.fury.io/js/assemble-middleware-add.png)](http://badge.fury.io/js/assemble-middleware-add)

> Add files to your Assemble file stream.

## Install
Install with [npm](npmjs.org):

```bash
npm i assemble-middleware-add --save-dev
```

## Add
### add

Add files to the current Assemble stream.

**Usage**

```js
var assemble = require('assemble');
var add = require('assemble-middleware-add')(assemble);

assemble.src('path/to/pages/*.hbs')
.pipe(assemble.dest('path/to/dest/pages/')
.pipe(add('path/to/posts/*.md'))
.pipe(assemble.dest('path/to/dest/blog/');
```

* `assemble` {Object}: instance of assemble
* `return` {Function} `addSrc` function to be used to create a stream.

## Author

**Brian Woodward**

+ [github/assemble](https://github.com/assemble)
+ [twitter/assemble](http://twitter.com/assemble)

## License
Copyright (c) 2014 Brian Woodward, contributors.
Released under the MIT license

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 30, 2014._