assemble-fs
Advanced tools
Comparing version 0.7.0 to 0.8.0
14
index.js
@@ -157,16 +157,16 @@ /*! | ||
// disable default `onLoad` handling inside templates | ||
file.options = utils.extend({ onLoad: false }, file.options); | ||
file.options = utils.extend({ onLoad: false }, options, file.options); | ||
if (app.isApp) { | ||
view = collection.addView(file.path, file); | ||
file = collection.addView(file.path, file); | ||
} else if (app.isCollection || app.isViews) { | ||
view = app.addView(file.path, file); | ||
file = app.addView(file.path, file); | ||
} else if (app.isList) { | ||
view = app.setItem(file.path, file); | ||
file = app.setItem(file.path, file); | ||
} else { | ||
return next(new Error('assemble-fs expects an instance, collection or view')); | ||
next(new Error('assemble-fs expects an instance, collection or view')); | ||
return; | ||
} | ||
view.options = utils.extend({}, options, view.options); | ||
next(null, view); | ||
next(null, file); | ||
}); | ||
@@ -173,0 +173,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.7.0", | ||
"version": "0.8.0", | ||
"homepage": "https://github.com/assemble/assemble-fs", | ||
@@ -14,4 +14,2 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"index.js", | ||
"LICENSE", | ||
"README.md", | ||
"utils.js" | ||
@@ -29,7 +27,7 @@ ], | ||
"extend-shallow": "^2.0.1", | ||
"is-valid-app": "^0.2.0", | ||
"lazy-cache": "^2.0.1", | ||
"is-valid-app": "^0.2.1", | ||
"lazy-cache": "^2.0.2", | ||
"stream-combiner": "^0.2.2", | ||
"through2": "^2.0.1", | ||
"vinyl-fs": "github:doowb/vinyl-fs#write-file" | ||
"through2": "^2.0.3", | ||
"vinyl-fs": "^2.4.4" | ||
}, | ||
@@ -41,12 +39,11 @@ "devDependencies": { | ||
"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", | ||
"should": "^9.0.2", | ||
"sinon": "^1.17.4", | ||
"templates": "^0.24.0", | ||
"vinyl": "^1.1.1" | ||
"from2": "^2.3.0", | ||
"graceful-fs": "^4.1.11", | ||
"gulp-format-md": "^0.1.11", | ||
"mocha": "^3.2.0", | ||
"rimraf": "^2.5.4", | ||
"should": "^11.1.2", | ||
"sinon": "^1.17.6", | ||
"templates": "^1.0.0", | ||
"vinyl": "^2.0.1" | ||
}, | ||
@@ -53,0 +50,0 @@ "keywords": [ |
@@ -1,4 +0,4 @@ | ||
# assemble-fs [![NPM version](https://img.shields.io/npm/v/assemble-fs.svg?style=flat)](https://www.npmjs.com/package/assemble-fs) [![NPM downloads](https://img.shields.io/npm/dm/assemble-fs.svg?style=flat)](https://npmjs.org/package/assemble-fs) [![Build Status](https://img.shields.io/travis/assemble/assemble-fs.svg?style=flat)](https://travis-ci.org/assemble/assemble-fs) | ||
# assemble-fs [![NPM version](https://img.shields.io/npm/v/assemble-fs.svg?style=flat)](https://www.npmjs.com/package/assemble-fs) [![NPM monthly downloads](https://img.shields.io/npm/dm/assemble-fs.svg?style=flat)](https://npmjs.org/package/assemble-fs) [![NPM total downloads](https://img.shields.io/npm/dt/assemble-fs.svg?style=flat)](https://npmjs.org/package/assemble-fs) [![Linux Build Status](https://img.shields.io/travis/assemble/assemble-fs.svg?style=flat&label=Travis)](https://travis-ci.org/assemble/assemble-fs) | ||
Assemble plugin to add methods to assemble for working with the file system, like src, dest, copy and symlink. | ||
> Assemble plugin to add methods to assemble for working with the file system, like src, dest, copy and symlink. | ||
@@ -57,2 +57,9 @@ ## Install | ||
### Contributors | ||
| **Commits** | **Contributor**<br/> | | ||
| --- | --- | | ||
| 79 | [jonschlinkert](https://github.com/jonschlinkert) | | ||
| 11 | [doowb](https://github.com/doowb) | | ||
### Building docs | ||
@@ -86,6 +93,6 @@ | ||
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). | ||
Released under the [MIT license](https://github.com/assemble/assemble-fs/blob/master/LICENSE). | ||
Released under the [MIT license](LICENSE). | ||
*** | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 21, 2016._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.1, on December 29, 2016._ |
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
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
12730
13
96
0
+ Addedarr-diff@2.0.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarray-unique@0.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbraces@1.8.5(transitive)
+ Addedclone@1.0.4(transitive)
+ Addedclone-stats@0.0.1(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconvert-source-map@1.9.0(transitive)
+ Addedduplexify@3.7.1(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedexpand-brackets@0.1.5(transitive)
+ Addedexpand-range@1.8.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextglob@0.3.2(transitive)
+ Addedfilename-regex@2.0.1(transitive)
+ Addedfill-range@2.2.4(transitive)
+ Addedfirst-chunk-stream@1.0.0(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@0.1.5(transitive)
+ Addedglob@5.0.15(transitive)
+ Addedglob-base@0.3.0(transitive)
+ Addedglob-parent@2.0.03.1.0(transitive)
+ Addedglob-stream@5.3.5(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedgulp-sourcemaps@1.6.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedis-dotfile@1.0.3(transitive)
+ Addedis-equal-shallow@0.1.3(transitive)
+ Addedis-extglob@1.0.02.1.1(transitive)
+ Addedis-glob@2.0.13.1.0(transitive)
+ Addedis-number@2.1.04.0.0(transitive)
+ Addedis-posix-bracket@0.1.1(transitive)
+ Addedis-primitive@2.0.0(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedis-utf8@0.2.1(transitive)
+ Addedis-valid-glob@0.3.0(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedjson-stable-stringify-without-jsonify@1.0.1(transitive)
+ Addedkind-of@6.0.3(transitive)
+ Addedlazystream@1.0.1(transitive)
+ Addedlodash.isequal@4.5.0(transitive)
+ Addedmath-random@1.0.4(transitive)
+ Addedmerge-stream@1.0.1(transitive)
+ Addedmicromatch@2.3.11(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addednormalize-path@2.1.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedobject.omit@2.0.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedordered-read-streams@0.3.0(transitive)
+ Addedparse-glob@3.0.4(transitive)
+ Addedpath-dirname@1.0.2(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpreserve@0.2.0(transitive)
+ Addedrandomatic@3.1.1(transitive)
+ Addedreadable-stream@1.0.343.6.2(transitive)
+ Addedregex-cache@0.4.4(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedreplace-ext@0.0.1(transitive)
+ Addedstream-shift@1.0.3(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedstrip-bom@2.0.0(transitive)
+ Addedstrip-bom-stream@1.0.0(transitive)
+ Addedthrough2@0.6.54.0.2(transitive)
+ Addedthrough2-filter@2.0.03.1.0(transitive)
+ Addedto-absolute-glob@0.1.1(transitive)
+ Addedunique-stream@2.3.1(transitive)
+ Addedvali-date@1.0.0(transitive)
+ Addedvinyl@1.2.0(transitive)
+ Addedvinyl-fs@2.4.4(transitive)
+ Addedwrappy@1.0.2(transitive)
Updatedis-valid-app@^0.2.1
Updatedlazy-cache@^2.0.2
Updatedthrough2@^2.0.3
Updatedvinyl-fs@^2.4.4