Comparing version 0.16.0 to 0.16.1
@@ -254,3 +254,3 @@ 'use strict'; | ||
appName = _options2.appName, | ||
namespace = _options2.namespace, | ||
scoped = _options2.scoped, | ||
pluginName = _options2.pluginName; | ||
@@ -265,3 +265,3 @@ | ||
} else if (extendPath.match(_constants.PLUGIN_NAME_PATTERN)) { | ||
return _this2.resolveModuleConfigPath(appName, (0, _formatPluginModuleName2.default)(appName, pluginName, extendPath, namespace), true); | ||
return _this2.resolveModuleConfigPath(appName, (0, _formatPluginModuleName2.default)(appName, pluginName, extendPath, scoped), true); | ||
} | ||
@@ -268,0 +268,0 @@ |
@@ -14,7 +14,7 @@ 'use strict'; | ||
function formatPluginModuleName(appName, pluginName, name) { | ||
var namespace = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; | ||
var scoped = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; | ||
var moduleName = name.toLowerCase().replace('plugin:', '').replace(pluginName + ':', ''); | ||
if (namespace) { | ||
if (scoped) { | ||
return '@' + appName + '/' + pluginName + '-' + moduleName; | ||
@@ -21,0 +21,0 @@ } |
@@ -55,6 +55,6 @@ 'use strict'; | ||
appName = _options.appName, | ||
namespace = _options.namespace, | ||
scoped = _options.scoped, | ||
pluginName = _options.pluginName; | ||
var moduleName = (0, _formatPluginModuleName2.default)(appName, pluginName, name, namespace); | ||
var moduleName = (0, _formatPluginModuleName2.default)(appName, pluginName, name, scoped); | ||
var importedPlugin = void 0; | ||
@@ -61,0 +61,0 @@ |
@@ -98,6 +98,6 @@ 'use strict'; | ||
appName: (0, _optimal.string)(), | ||
namespace: (0, _optimal.bool)(), | ||
pluginName: (0, _optimal.string)('plugin'), | ||
renderer: (0, _optimal.instance)(_Renderer2.default).nullable(), | ||
root: (0, _optimal.string)(process.cwd()), | ||
scoped: (0, _optimal.bool)(), | ||
title: (0, _optimal.string)().empty() | ||
@@ -104,0 +104,0 @@ }, { |
{ | ||
"name": "boost", | ||
"version": "0.16.0", | ||
"version": "0.16.1", | ||
"description": "Robust pipeline for creating build tools that separate logic into routines and tasks.", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -250,3 +250,3 @@ /** | ||
const { appName, namespace, pluginName } = this.options; | ||
const { appName, scoped, pluginName } = this.options; | ||
@@ -269,3 +269,3 @@ // Absolute path, use it directly | ||
appName, | ||
formatPluginModuleName(appName, pluginName, extendPath, namespace), | ||
formatPluginModuleName(appName, pluginName, extendPath, scoped), | ||
true, | ||
@@ -272,0 +272,0 @@ ); |
@@ -14,3 +14,3 @@ /** | ||
name: string, | ||
namespace: boolean = false, | ||
scoped: boolean = false, | ||
): string { | ||
@@ -21,3 +21,3 @@ const moduleName = name.toLowerCase() | ||
if (namespace) { | ||
if (scoped) { | ||
return `@${appName}/${pluginName}-${moduleName}`; | ||
@@ -24,0 +24,0 @@ } |
@@ -29,4 +29,4 @@ /** | ||
importPlugin(name: string, options?: Object = {}): TP { | ||
const { appName, namespace, pluginName } = this.options; | ||
const moduleName = formatPluginModuleName(appName, pluginName, name, namespace); | ||
const { appName, scoped, pluginName } = this.options; | ||
const moduleName = formatPluginModuleName(appName, pluginName, name, scoped); | ||
let importedPlugin; | ||
@@ -33,0 +33,0 @@ |
@@ -54,6 +54,6 @@ /** | ||
appName: string(), | ||
namespace: bool(), | ||
pluginName: string('plugin'), | ||
renderer: instance(Renderer).nullable(), | ||
root: string(process.cwd()), | ||
scoped: bool(), | ||
title: string().empty(), | ||
@@ -60,0 +60,0 @@ }, { |
@@ -20,6 +20,6 @@ /** | ||
appName: string, | ||
namespace: boolean, | ||
pluginName: string, | ||
renderer: Renderer, | ||
root: string, | ||
scoped: boolean, | ||
title: string, | ||
@@ -26,0 +26,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
293184