v0.17.1
Fixes
Generator#help()
doesn't outputundefined
default value for options.Generator#arguments()
would sometime create endless loop and crash the process.- Generators queue hash won't run private methods (
_
prefixed methods name). - Generator will wait for the Storage to be persisted (if necessary) before triggering the
end
event. Generator#log()
can now use falsy value to replace string placeholder.
Storage
Storage#set()
andStorage#defaults()
now return the content of the store.- Can now be used by multiple Generator instances (e.g. with composability) without having one generator overwrite the config saved by another.
Testing (RunContext
)
-
Deprecate
RunContext#onEnd()
for a real event:runContext.on('end, cb)
. -
Rename
RunContext#withPrompt()
toRunContext#withPrompts()
-
Add
RunContext#withGenerators()
to stub sub-generators called by the tested generator. -
RunContext#inDir()
now take a callback, and the callback can perform async task usingthis.async()
-
Multiple minor improvements (
ready
event to modify env, etc) -
Lots of fixes
Kudos to @blai for the large effort he put into fixing and improving the testing helper.
generator#user.git
- Move getter property to methods for explicit performance side-effect.
user.git.name()
,user.git.email()
,user.github.username()