assemble-fs
Advanced tools
Comparing version 0.2.0 to 0.2.1
11
index.js
@@ -33,3 +33,2 @@ /*! | ||
function plugin(app) { | ||
var vfs = utils.vfs; | ||
@@ -54,4 +53,4 @@ /** | ||
app.mixin('copy', function (patterns, dest, options) { | ||
return vfs.src(patterns, options) | ||
.pipe(vfs.dest(dest, options)) | ||
return utils.vfs.src(patterns, options) | ||
.pipe(utils.vfs.dest(dest, options)) | ||
.on('data', function () {}); | ||
@@ -73,3 +72,3 @@ }); | ||
app.mixin('src', function() { | ||
return vfs.src.apply(vfs, arguments) | ||
return utils.vfs.src.apply(utils.vfs, arguments) | ||
.pipe(toCollection(this)); | ||
@@ -90,3 +89,3 @@ }); | ||
app.mixin('symlink', function () { | ||
return vfs.symlink.apply(vfs, arguments); | ||
return utils.vfs.symlink.apply(utils.vfs, arguments); | ||
}); | ||
@@ -110,3 +109,3 @@ | ||
} | ||
return vfs.dest.apply(vfs, arguments); | ||
return utils.vfs.dest.apply(utils.vfs, arguments); | ||
}); | ||
@@ -113,0 +112,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.2.0", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/jonschlinkert/assemble-fs", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -31,3 +31,3 @@ # assemble-fs [![NPM version](https://badge.fury.io/js/assemble-fs.svg)](http://badge.fury.io/js/assemble-fs) | ||
### [.copy](index.js#L52) | ||
### [.copy](index.js#L51) | ||
@@ -52,3 +52,3 @@ Copy files with the given glob `patterns` to the specified `dest`. | ||
### [.src](index.js#L70) | ||
### [.src](index.js#L69) | ||
@@ -68,3 +68,3 @@ Glob patterns or filepaths to source files. | ||
### [.symlink](index.js#L86) | ||
### [.symlink](index.js#L85) | ||
@@ -83,3 +83,3 @@ Glob patterns or paths for symlinks. | ||
### [.dest](index.js#L102) | ||
### [.dest](index.js#L101) | ||
@@ -86,0 +86,0 @@ Specify a destination for processed files. |
9187
135