v0.14.0
Generator system
New Features
- Copying large folder could cause a recursion error. Two new methods (
generators.bulkCopy
andgenerators.bulkDirectory
) have been added to allow large folder being copied without template and conflict processing on each contained file. (example use case: transferring every file in the Wordpress repo) (#350) - Added a new file handling system. Generator now get access to
this.src
andthis.dest
who're scoped file utility relative to thesourceRoot
anddestinationRoot
. The file utility is based on theGrunt.file
interface but add scope and filters (write filters to beautify, transcode, etc and validate filters to check conflicts). (For examples and discussion see #378 and #313)
Bugs
- Fix bug with arguments inversed in the wiring methods (#174)
- Fix bug causing the
end
event to be triggered multiple time (Bug #302 -> Fix #402) - Options/args passed to
runHook
are now cloned, so the hooked generator won't modify the state of these objects in the main one. generators
fetching methods likeextract
,fetch
,tarball
now rely on the NPMdownload
module.
Runner system (Environment)
- Fix and improve
env.help
output (#364 and #398) - Now detect correctly symlinked npm modules (e.g. using
npm link
) - breaking
env.register
now only take a string (filepath or NPM module name) to make sure the metadata it assign to the generator are relevant (namespace
,resolved
). If you want to register a stubbed generator for easy testing, then useenv.registerStub
, but know the metadata might be missing or erroneous. - breaking Removal of
env.remote
andenv.engine
. This shouldn't change anything as they were broked or not used.
Maintenance
- Added support for test coverage using Coveralls reports.
- Way better support for running test suite on Windows. It should run now.
See all: v0.13.4...v0.14.0