base-generators
Advanced tools
Comparing version 0.1.14 to 0.1.15
@@ -227,3 +227,5 @@ /*! | ||
if (memory.getGenerator.has(name)) { | ||
return memory.getGenerator.get(name); | ||
var gen = memory.getGenerator.get(name); | ||
gen.option(this.options); | ||
return gen; | ||
} | ||
@@ -245,2 +247,3 @@ | ||
if (app) { | ||
app.option(this.options); | ||
memory.getGenerator.set(name, app); | ||
@@ -247,0 +250,0 @@ return app; |
@@ -19,3 +19,3 @@ 'use strict'; | ||
* - If `fn` is a filepath, the path will be resolved and validated, but not required, allowing it to be lazily invoked later. | ||
* - If `fn` is a fucntion, it will be lazily invoked when the generator is called. | ||
* - If `fn` is a function, it will be lazily invoked when the generator is called. | ||
* | ||
@@ -22,0 +22,0 @@ * @param {String} `name` The name, alias or path of the generator. |
@@ -20,8 +20,8 @@ 'use strict'; | ||
Search.prototype.has = function(key) { | ||
Search.prototype.has = function(key, val) { | ||
if (this.cache.hasOwnProperty(key)) { | ||
return true; | ||
} | ||
this.set(key); | ||
this.set(key, val); | ||
return false; | ||
}; |
{ | ||
"name": "base-generators", | ||
"description": "Adds project-generator support to your `base` application.", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"homepage": "https://github.com/jonschlinkert/base-generators", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
52762
1071