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.
- Host: GitHub
- URL: https://github.com/assemble/assemble-middleware-add
- Owner: assemble
- License: mit
- Created: 2014-06-30T16:24:42.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-30T17:00:55.000Z (almost 12 years ago)
- Last Synced: 2025-04-01T22:17:01.631Z (about 1 year ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# assemble-middleware-add [](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._