Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

base-runtimes

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-runtimes - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

61

index.js

@@ -17,22 +17,31 @@ /*!

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) {
var val = namespace(build);
starting(val ? (val + ' generator') : '');
if (!silent(build)) {
var val = namespace(build);
starting(val ? (val + ' generator') : '');
}
});
this.on('finished', function(build) {
var val = namespace(build);
finished(val ? (val + ' generator') : '');
if (!silent(build)) {
var val = namespace(build);
finished(val ? (val + ' generator') : '');
}
});
this.on('task:starting', function(task) {
starting(namespace(app), name(task) + ' task');
if (!silent(app, task)) {
if (task.name === 'noop') return;
starting(namespace(app), name(task) + ' task');
}
});
this.on('task:finished', function(task) {
finished(namespace(app), name(task) + ' task');
if (!silent(app, task)) {
if (task.name === 'noop') return;
finished(namespace(app), name(task) + ' task');
}
});

@@ -44,2 +53,11 @@

function silent(app, task) {
if (app.options.silent === true) {
return true;
}
if (task && task.options.silent === true) {
return true;
}
}
function starting(namespace, name) {

@@ -62,18 +80,29 @@ var key = toKey(namespace, name);

function namespace(build) {
return build.namespace || '';
return build.namespace;
}
function toKey(namespace, name) {
if (namespace && name) {
return utils.bold(utils.cyan(namespace)) + ':' + utils.yellow(name);
}
var res = '';
if (namespace) {
return utils.bold(utils.cyan(namespace));
namespace = stripDefault(namespace);
}
if (name) {
return utils.cyan(name);
if (namespace && name) {
res = utils.bold(utils.cyan(namespace)) + ':' + utils.yellow(name);
} else if (namespace) {
res = utils.bold(utils.cyan(namespace));
} else if (name) {
res = utils.cyan(name);
}
return '';
return res;
}
};
};
function stripDefault(name) {
if (name.indexOf('default.') === 0) {
return name.slice('default.'.length);
}
return name;
}
{
"name": "base-runtimes",
"description": "Plugin for adding composer-runtimes to base applications, complementing the base-tasks and base-generators plugins.",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/jonschlinkert/base-runtimes",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

@@ -15,3 +15,3 @@ # 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)

This plugin is a basic wrapper for [composer-runtimes](https://github.com/doowb/composer-runtimes) and [composer](https://github.com/jonschlinkert/composer), see those libraries to learn more about available features and options, or to report issues related to runtimes colors or formatting.
This plugin is a basic wrapper for [composer-runtimes](https://github.com/doowb/composer-runtimes) and [composer](https://github.com/doowb/composer), see those libraries to learn more about available features and options, or to report issues related to runtimes colors or formatting.

@@ -81,2 +81,2 @@ ## Usage

_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on February 06, 2016._
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on February 11, 2016._
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc