base-runtimes
Advanced tools
Comparing version 0.1.2 to 0.1.3
30
index.js
@@ -12,25 +12,31 @@ /*! | ||
module.exports = function(options) { | ||
module.exports = function(config) { | ||
config = config || {}; | ||
return function(app) { | ||
if (this.isRegistered('base-runtimes')) return; | ||
var time = new utils.Time(); | ||
var ctor = this.constructor; | ||
var runner = ctor.name.toLowerCase(); | ||
this.on('starting', function(build) { | ||
starting(namespace(build)); | ||
var val = namespace(build); | ||
starting(val ? (val + ' generator') : ''); | ||
}); | ||
this.on('finished', function(build) { | ||
finished(namespace(build)); | ||
var val = namespace(build); | ||
finished(val ? (val + ' generator') : ''); | ||
}); | ||
this.on('task:starting', function(task) { | ||
starting(namespace(app), name(task)); | ||
starting(namespace(app), name(task) + ' task'); | ||
}); | ||
this.on('task:finished', function(task) { | ||
finished(namespace(app), name(task)); | ||
finished(namespace(app), name(task) + ' task'); | ||
}); | ||
this.once('done', function() { | ||
console.error(utils.green(utils.check), 'finished'); | ||
utils.timestamp('finished', utils.green(utils.check)); | ||
}); | ||
@@ -50,8 +56,8 @@ | ||
function name(app) { | ||
return app.name || ''; | ||
function name(task) { | ||
return task.name || ''; | ||
} | ||
function namespace(app) { | ||
return app.namespace || ''; | ||
function namespace(build) { | ||
return build.namespace || ''; | ||
} | ||
@@ -61,6 +67,6 @@ | ||
if (namespace && name) { | ||
return utils.cyan(namespace + ':' + name); | ||
return utils.bold(utils.cyan(namespace)) + ':' + utils.yellow(name); | ||
} | ||
if (namespace) { | ||
return utils.cyan(namespace); | ||
return utils.bold(utils.cyan(namespace)); | ||
} | ||
@@ -67,0 +73,0 @@ if (name) { |
{ | ||
"name": "base-runtimes", | ||
"description": "Plugin for adding composer-runtimes to base applications, complementing the base-tasks and base-generators plugins.", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"homepage": "https://github.com/jonschlinkert/base-runtimes", | ||
@@ -24,5 +24,8 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"dependencies": { | ||
"ansi-bold": "^0.1.1", | ||
"ansi-cyan": "^0.1.1", | ||
"ansi-green": "^0.1.1", | ||
"ansi-magenta": "^0.1.1", | ||
"ansi-yellow": "^0.1.1", | ||
"extend-shallow": "^2.0.1", | ||
"fancy-log": "github:jonschlinkert/fancy-log#timestamp", | ||
@@ -64,8 +67,11 @@ "lazy-cache": "^1.0.3", | ||
"related": { | ||
"highlight": "base-task", | ||
"description": "You might also be interested in these projects:", | ||
"list": [ | ||
"base", | ||
"base-fs", | ||
"base-generators", | ||
"base-pipeline", | ||
"base-plugins", | ||
"base-tasks" | ||
"base-task" | ||
] | ||
@@ -72,0 +78,0 @@ }, |
@@ -5,2 +5,4 @@ # 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) | ||
You might also be interested in [base-task](https://github.com/node-base/base-task). | ||
## Install | ||
@@ -48,5 +50,6 @@ | ||
* [base-fs](https://www.npmjs.com/package/base-fs): base-methods plugin that adds vinyl-fs methods to your 'base' application for working with the file… [more](https://www.npmjs.com/package/base-fs) | [homepage](https://github.com/jonschlinkert/base-fs) | ||
* [base-generators](https://www.npmjs.com/package/base-generators): Adds project-generator support to your `base` application. | [homepage](https://github.com/jonschlinkert/base-generators) | ||
* [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-tasks](https://www.npmjs.com/package/base-tasks): base-methods plugin that provides a very thin wrapper around [https://github.com/jonschlinkert/composer](https://github.com/jonschlinkert/composer) for adding task methods to… [more](https://www.npmjs.com/package/base-tasks) | [homepage](https://github.com/jonschlinkert/base-tasks) | ||
* [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) | ||
@@ -75,6 +78,6 @@ ## Running tests | ||
Copyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert) | ||
Released under the MIT license. | ||
Released under the [MIT license](https://github.com/jonschlinkert/base-runtimes/blob/master/LICENSE). | ||
*** | ||
_This file was generated by [verb](https://github.com/verbose/verb) on January 29, 2016._ | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on February 06, 2016._ |
@@ -15,5 +15,8 @@ 'use strict'; | ||
require('extend-shallow', 'extend'); | ||
require('ansi-bold', 'bold'); | ||
require('ansi-cyan', 'cyan'); | ||
require('ansi-green', 'green'); | ||
require('ansi-magenta', 'magenta'); | ||
require('ansi-yellow', 'yellow'); | ||
require('fancy-log', 'timestamp'); | ||
@@ -20,0 +23,0 @@ require('success-symbol', 'check'); |
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
8993
86
80
10
+ Addedansi-bold@^0.1.1
+ Addedansi-yellow@^0.1.1
+ Addedextend-shallow@^2.0.1
+ Addedansi-bold@0.1.1(transitive)
+ Addedansi-yellow@0.1.1(transitive)
+ Addedextend-shallow@2.0.1(transitive)
+ Addedis-extendable@0.1.1(transitive)