assemble-fs
Advanced tools
Comparing version 0.4.7 to 0.5.0
@@ -33,3 +33,3 @@ /*! | ||
function plugin(app) { | ||
if (this.isRegistered('assemble-fs')) return; | ||
if (!utils.isValid(app)) return; | ||
@@ -36,0 +36,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.7", | ||
"version": "0.5.0", | ||
"homepage": "https://github.com/assemble/assemble-fs", | ||
@@ -24,5 +24,7 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"dependencies": { | ||
"assemble-handle": "^0.1.0", | ||
"assemble-handle": "^0.1.2", | ||
"extend-shallow": "^2.0.1", | ||
"lazy-cache": "^1.0.3", | ||
"is-registered": "^0.1.4", | ||
"is-valid-instance": "^0.1.0", | ||
"lazy-cache": "^2.0.1", | ||
"stream-combiner": "^0.2.2", | ||
@@ -34,10 +36,10 @@ "through2": "^2.0.1", | ||
"buffer-equal": "^1.0.0", | ||
"expect": "^1.18.0", | ||
"graceful-fs": "^4.1.3", | ||
"gulp-format-md": "^0.1.8", | ||
"mocha": "^2.4.5", | ||
"expect": "^1.20.1", | ||
"graceful-fs": "^4.1.4", | ||
"gulp-format-md": "^0.1.9", | ||
"mocha": "^2.5.2", | ||
"rimraf": "^2.5.2", | ||
"should": "^8.3.1", | ||
"sinon": "^1.17.3", | ||
"templates": "^0.17.0", | ||
"should": "^8.4.0", | ||
"sinon": "^1.17.4", | ||
"templates": "^0.18.3", | ||
"vinyl": "^1.1.1" | ||
@@ -44,0 +46,0 @@ }, |
# 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 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. | ||
@@ -42,3 +42,3 @@ ## Install | ||
* [assemble-loader](https://www.npmjs.com/package/assemble-loader): Assemble plugin (^0.6.0) for loading globs of views onto custom view collections. Also works with… [more](https://www.npmjs.com/package/assemble-loader) | [homepage](https://github.com/jonschlinkert/assemble-loader) | ||
* [assemble-loader](https://www.npmjs.com/package/assemble-loader): Assemble plugin (^0.6.0) for loading globs of views onto custom view collections. Also works with… [more](https://www.npmjs.com/package/assemble-loader) | [homepage](https://github.com/assemble/assemble-loader) | ||
* [assemble-render-file](https://www.npmjs.com/package/assemble-render-file): Assemble plugin for rendering views in a vinyl pipeline. | [homepage](https://github.com/assemble/assemble-render-file) | ||
@@ -52,3 +52,3 @@ * [assemble-streams](https://www.npmjs.com/package/assemble-streams): Assemble pipeline plugin for pushing a view collection into a vinyl stream. | [homepage](https://github.com/assemble/assemble-streams) | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/assemble-fs/issues/new). | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/assemble/assemble-fs/issues/new). | ||
@@ -91,2 +91,2 @@ ## Building docs | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 20, 2016._ | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 24, 2016._ |
24
utils.js
@@ -9,8 +9,14 @@ 'use strict'; | ||
var fn = require; | ||
require = utils; | ||
require = utils; | ||
/** | ||
* Utils | ||
*/ | ||
require('assemble-handle', 'handle'); | ||
require('extend-shallow', 'extend'); | ||
require('is-registered'); | ||
require('is-valid-instance'); | ||
require('stream-combiner', 'combine'); | ||
require('through2', 'through'); | ||
require('stream-combiner', 'combine'); | ||
require('vinyl-fs', 'vfs'); | ||
@@ -20,2 +26,16 @@ require = fn; | ||
/** | ||
* Return true if app is a valid instance | ||
*/ | ||
utils.isValid = function(app, types) { | ||
if (!utils.isValidInstance(app, ['app', 'views', 'collection'])) { | ||
return false; | ||
} | ||
if (utils.isRegistered(app, 'assemble-fs')) { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
/** | ||
* Expose `utils` | ||
@@ -22,0 +42,0 @@ */ |
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
11340
177
8
+ Addedis-registered@^0.1.4
+ Addedis-valid-instance@^0.1.0
+ Addeddefine-property@0.2.5(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedis-accessor-descriptor@1.0.1(transitive)
+ Addedis-data-descriptor@1.0.1(transitive)
+ Addedis-descriptor@0.1.7(transitive)
+ Addedis-registered@0.1.5(transitive)
+ Addedis-valid-instance@0.1.0(transitive)
+ Addedlazy-cache@2.0.2(transitive)
+ Addedpascalcase@0.1.1(transitive)
+ Addedset-getter@0.1.1(transitive)
+ Addedto-object-path@0.3.0(transitive)
- Removedlazy-cache@1.0.4(transitive)
Updatedassemble-handle@^0.1.2
Updatedlazy-cache@^2.0.1