base-runtimes
Advanced tools
Comparing version 0.1.4 to 0.1.5
21
index.js
@@ -15,5 +15,4 @@ /*! | ||
return function(app) { | ||
if (this.isRegistered('base-runtimes')) return; | ||
return function plugin(app) { | ||
if (!isValidInstance(app)) return; | ||
var time = new utils.Time(); | ||
@@ -98,2 +97,4 @@ | ||
} | ||
return plugin; | ||
}; | ||
@@ -108,1 +109,15 @@ }; | ||
} | ||
function isValidInstance(app) { | ||
if (app.isRegistered('base-runtimes')) { | ||
return false; | ||
} | ||
if (app.isCollection || app.isView) { | ||
return false; | ||
} | ||
var fn = app.options.validatePlugin; | ||
if (typeof fn === 'function') { | ||
return fn(app); | ||
} | ||
return true; | ||
} |
{ | ||
"name": "base-runtimes", | ||
"description": "Plugin for adding composer-runtimes to base applications, complementing the base-tasks and base-generators plugins.", | ||
"version": "0.1.4", | ||
"homepage": "https://github.com/jonschlinkert/base-runtimes", | ||
"version": "0.1.5", | ||
"homepage": "https://github.com/node-base/base-runtimes", | ||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"repository": "jonschlinkert/base-runtimes", | ||
"repository": "node-base/base-runtimes", | ||
"bugs": { | ||
"url": "https://github.com/jonschlinkert/base-runtimes/issues" | ||
"url": "https://github.com/node-base/base-runtimes/issues" | ||
}, | ||
@@ -30,3 +30,3 @@ "license": "MIT", | ||
"extend-shallow": "^2.0.1", | ||
"fancy-log": "github:jonschlinkert/fancy-log#timestamp", | ||
"fancy-log": "^1.2.0", | ||
"lazy-cache": "^1.0.3", | ||
@@ -61,4 +61,8 @@ "success-symbol": "^0.1.0", | ||
"verb": { | ||
"run": true, | ||
"toc": false, | ||
"layout": "default", | ||
"tasks": [ | ||
"readme" | ||
], | ||
"plugins": [ | ||
@@ -81,5 +85,9 @@ "gulp-format-md" | ||
"composer", | ||
"composer-runtimes" | ||
] | ||
"composer-runtimes", | ||
"verb" | ||
], | ||
"lint": { | ||
"reflinks": true | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# base-runtimes [![NPM version](https://img.shields.io/npm/v/base-runtimes.svg)](https://www.npmjs.com/package/base-runtimes) [![Build Status](https://img.shields.io/travis/jonschlinkert/base-runtimes.svg)](https://travis-ci.org/jonschlinkert/base-runtimes) | ||
# base-runtimes [![NPM version](https://img.shields.io/npm/v/base-runtimes.svg)](https://www.npmjs.com/package/base-runtimes) [![Build Status](https://img.shields.io/travis/node-base/base-runtimes.svg)](https://travis-ci.org/node-base/base-runtimes) | ||
@@ -12,3 +12,3 @@ > Plugin for adding composer-runtimes to base applications, complementing the base-tasks and base-generators plugins. | ||
```sh | ||
$ npm i base-runtimes --save | ||
$ npm install base-runtimes --save | ||
``` | ||
@@ -52,5 +52,23 @@ | ||
* [base-pipeline](https://www.npmjs.com/package/base-pipeline): base-methods plugin that adds pipeline and plugin methods for dynamically composing streaming plugin pipelines. | [homepage](https://github.com/jonschlinkert/base-pipeline) | ||
* [base-plugins](https://www.npmjs.com/package/base-plugins): Upgrade's plugin support in base-methods to allow plugins to be called any time after init. | [homepage](https://github.com/jonschlinkert/base-plugins) | ||
* [base-plugins](https://www.npmjs.com/package/base-plugins): Upgrade's plugin support in base applications to allow plugins to be called any time after… [more](https://www.npmjs.com/package/base-plugins) | [homepage](https://github.com/jonschlinkert/base-plugins) | ||
* [base-task](https://www.npmjs.com/package/base-task): base plugin that provides a very thin wrapper around [https://github.com/doowb/composer](https://github.com/doowb/composer) for adding task methods to… [more](https://www.npmjs.com/package/base-task) | [homepage](https://github.com/node-base/base-task) | ||
## Contributing | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/base-runtimes/issues/new). | ||
## Building docs | ||
Generate readme and API documentation with [verb](https://github.com/verbose/verb): | ||
```sh | ||
$ npm install verb && npm run docs | ||
``` | ||
Or, if [verb](https://github.com/verbose/verb) is installed globally: | ||
```sh | ||
$ verb | ||
``` | ||
## Running tests | ||
@@ -61,9 +79,5 @@ | ||
```sh | ||
$ npm i -d && npm test | ||
$ npm install -d && npm test | ||
``` | ||
## Contributing | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/base-runtimes/issues/new). | ||
## Author | ||
@@ -79,6 +93,6 @@ | ||
Copyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert) | ||
Released under the [MIT license](https://github.com/jonschlinkert/base-runtimes/blob/master/LICENSE). | ||
Released under the [MIT license](https://github.com/node-base/base-runtimes/blob/master/LICENSE). | ||
*** | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on February 11, 2016._ | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on March 17, 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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
10211
124
1
1
94
0
+ Addedansi-gray@0.1.1(transitive)
+ Addedcolor-support@1.1.3(transitive)
+ Addedfancy-log@1.3.3(transitive)
+ Addedparse-node-version@1.0.1(transitive)
+ Addedtime-stamp@1.1.0(transitive)
Updatedfancy-log@^1.2.0