assemble-fs
Advanced tools
Comparing version 0.6.0 to 0.7.0
16
index.js
@@ -64,3 +64,3 @@ /*! | ||
app.mixin('copy', function(patterns, dest, options) { | ||
this.define('copy', function(patterns, dest, options) { | ||
var opts = utils.extend({ allowEmpty: true }, options); | ||
@@ -83,8 +83,8 @@ return utils.vfs.src(patterns, opts) | ||
app.mixin('src', function(glob, options) { | ||
this.define('src', function(glob, options) { | ||
var opts = utils.extend({ allowEmpty: true }, options); | ||
return utils.vfs.src(glob, opts) | ||
.pipe(toCollection(this, opts)) | ||
.pipe(utils.handle(this, 'onLoad')) | ||
.pipe(utils.handle(this, 'onStream')) | ||
.pipe(utils.handle.once(this, 'onLoad')) | ||
.pipe(utils.handle.once(this, 'onStream')) | ||
}); | ||
@@ -103,3 +103,3 @@ | ||
app.mixin('symlink', function() { | ||
this.define('symlink', function() { | ||
return utils.vfs.symlink.apply(utils.vfs, arguments); | ||
@@ -120,3 +120,3 @@ }); | ||
app.mixin('dest', function(dir) { | ||
this.define('dest', function(dir, options) { | ||
if (!dir) { | ||
@@ -127,5 +127,5 @@ throw new TypeError('expected dest to be a string or function.'); | ||
var output = utils.combine([ | ||
utils.handle(this, 'preWrite'), | ||
utils.handle.once(this, 'preWrite'), | ||
utils.vfs.dest.apply(utils.vfs, arguments), | ||
utils.handle(this, 'postWrite') | ||
utils.handle.once(this, 'postWrite') | ||
]); | ||
@@ -132,0 +132,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.6.0", | ||
"version": "0.7.0", | ||
"homepage": "https://github.com/assemble/assemble-fs", | ||
@@ -26,3 +26,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"dependencies": { | ||
"assemble-handle": "^0.1.2", | ||
"assemble-handle": "^0.1.3", | ||
"extend-shallow": "^2.0.1", | ||
@@ -33,10 +33,14 @@ "is-valid-app": "^0.2.0", | ||
"through2": "^2.0.1", | ||
"vinyl-fs": "^2.4.3" | ||
"vinyl-fs": "github:doowb/vinyl-fs#write-file" | ||
}, | ||
"devDependencies": { | ||
"buffer-equal": "^1.0.0", | ||
"default-resolution": "^2.0.0", | ||
"delete": "^0.3.2", | ||
"expect": "^1.20.2", | ||
"from2": "^2.1.1", | ||
"graceful-fs": "^4.1.4", | ||
"gulp-format-md": "^0.1.9", | ||
"mocha": "^2.5.3", | ||
"readable-stream": "^2.1.4", | ||
"rimraf": "^2.5.3", | ||
@@ -43,0 +47,0 @@ "should": "^9.0.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
12552
5
0
89
14
1
- Removedarr-diff@2.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarray-unique@0.2.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@1.8.5(transitive)
- Removedclone@1.0.4(transitive)
- Removedclone-stats@0.0.1(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedduplexify@3.7.1(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedexpand-brackets@0.1.5(transitive)
- Removedexpand-range@1.8.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedextglob@0.3.2(transitive)
- Removedfilename-regex@2.0.1(transitive)
- Removedfill-range@2.2.4(transitive)
- Removedfirst-chunk-stream@1.0.0(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfor-own@0.1.5(transitive)
- Removedglob@5.0.15(transitive)
- Removedglob-base@0.3.0(transitive)
- Removedglob-parent@2.0.03.1.0(transitive)
- Removedglob-stream@5.3.5(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedgulp-sourcemaps@1.6.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedis-dotfile@1.0.3(transitive)
- Removedis-equal-shallow@0.1.3(transitive)
- Removedis-extglob@1.0.02.1.1(transitive)
- Removedis-glob@2.0.13.1.0(transitive)
- Removedis-number@2.1.04.0.0(transitive)
- Removedis-posix-bracket@0.1.1(transitive)
- Removedis-primitive@2.0.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedis-utf8@0.2.1(transitive)
- Removedis-valid-glob@0.3.0(transitive)
- Removedisarray@0.0.1(transitive)
- Removedjson-stable-stringify-without-jsonify@1.0.1(transitive)
- Removedkind-of@6.0.3(transitive)
- Removedlazystream@1.0.1(transitive)
- Removedlodash.isequal@4.5.0(transitive)
- Removedmath-random@1.0.4(transitive)
- Removedmerge-stream@1.0.1(transitive)
- Removedmicromatch@2.3.11(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removednormalize-path@2.1.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedobject.omit@2.0.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedordered-read-streams@0.3.0(transitive)
- Removedparse-glob@3.0.4(transitive)
- Removedpath-dirname@1.0.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpreserve@0.2.0(transitive)
- Removedrandomatic@3.1.1(transitive)
- Removedreadable-stream@1.0.343.6.2(transitive)
- Removedregex-cache@0.4.4(transitive)
- Removedremove-trailing-separator@1.1.0(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedreplace-ext@0.0.1(transitive)
- Removedstream-shift@1.0.3(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedstrip-bom@2.0.0(transitive)
- Removedstrip-bom-stream@1.0.0(transitive)
- Removedthrough2@0.6.54.0.2(transitive)
- Removedthrough2-filter@2.0.03.1.0(transitive)
- Removedto-absolute-glob@0.1.1(transitive)
- Removedunique-stream@2.3.1(transitive)
- Removedvali-date@1.0.0(transitive)
- Removedvinyl@1.2.0(transitive)
- Removedvinyl-fs@2.4.4(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedassemble-handle@^0.1.3