assemble-fs
Advanced tools
Comparing version 0.4.3 to 0.4.4
14
index.js
@@ -17,9 +17,11 @@ /*! | ||
module.exports = function() { | ||
return function(app) { | ||
return function() { | ||
if (!this.isApp) return; | ||
plugin.call(app, app); | ||
this.options.onLoad = false; | ||
plugin.call(this, this); | ||
return function(collection) { | ||
return function() { | ||
if (!this.isCollection) return; | ||
plugin.call(collection, collection); | ||
this.options.onLoad = false; | ||
plugin.call(this, this); | ||
}; | ||
@@ -45,2 +47,3 @@ }; | ||
app.handler('postWrite'); | ||
app.handler('onLoad'); | ||
} | ||
@@ -84,5 +87,6 @@ | ||
app.mixin('src', function(glob, options) { | ||
var opts = utils.extend({ allowEmpty: true }, options); | ||
var opts = utils.extend({ allowEmpty: true, onLoad: false }, options); | ||
return utils.vfs.src(glob, opts) | ||
.pipe(toCollection(this, opts)) | ||
.pipe(utils.handle(this, 'onLoad')) | ||
.pipe(utils.handle(this, 'onStream')) | ||
@@ -89,0 +93,0 @@ }); |
{ | ||
"name": "assemble-fs", | ||
"description": "Assemble plugin to add methods to assemble for working with the file system, like src, dest, copy and symlink.", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"homepage": "https://github.com/assemble/assemble-fs", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -85,2 +85,2 @@ # assemble-fs [![NPM version](https://img.shields.io/npm/v/assemble-fs.svg)](https://www.npmjs.com/package/assemble-fs) [![Build Status](https://img.shields.io/travis/assemble/assemble-fs.svg)](https://travis-ci.org/assemble/assemble-fs) | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on March 09, 2016._ | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on March 14, 2016._ |
10259
160