Comparing version 0.11.0 to 0.12.0
@@ -110,2 +110,15 @@ 'use strict'; | ||
}, { | ||
key: 'getPlugin', | ||
value: function getPlugin(name) { | ||
var plugin = this.plugins.find(function (p) { | ||
return p.name === name; | ||
}); | ||
if (!plugin) { | ||
throw new Error('Failed to find ' + this.options.pluginName + ' "' + name + '". Have you installed it?'); | ||
} | ||
return plugin; | ||
} | ||
}, { | ||
key: 'initialize', | ||
@@ -112,0 +125,0 @@ value: function initialize() { |
{ | ||
"name": "boost", | ||
"version": "0.11.0", | ||
"version": "0.12.0", | ||
"description": "Robust pipeline for creating build tools that separate logic into routines and tasks.", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -87,2 +87,17 @@ /** | ||
/** | ||
* Get a plugin by name. | ||
*/ | ||
getPlugin(name: string): Plugin<*> { | ||
const plugin = this.plugins.find(p => p.name === name); | ||
if (!plugin) { | ||
throw new Error( | ||
`Failed to find ${this.options.pluginName} "${name}". Have you installed it?`, | ||
); | ||
} | ||
return plugin; | ||
} | ||
/** | ||
* Initialize the tool by loading config and plugins. | ||
@@ -89,0 +104,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
288092
2469