v5.0.0
Breaking changes
- Requires node 12.
- Requires
yeoman-environment@3.0.0
(unreleased yo@4). - Conflicter moved to the Environment.
- Install action is deprecated and is not included by default.
- Replaced by package.json manipulation
addDependencies({dependency: 'version'})
addDevDependencies({dependency: 'version'})
this.packageJson
storage. Eg:this.packageJson.merge({scripts: {test: 'mocha'}})
;
- Install task will be executed later by the Environment when
package.json
changes. - To load it:
- Replaced by package.json manipulation
const Generator = require('yeoman-generator');
-_.extend(Generator.prototype, require('yeoman-generator/lib/actions/install'));
- Singleton Generators support passing
unique: 'namespace'
orunique: 'argument'
.
constructor(args, options = {}) {
super(args, {...options, unique: 'namespace'}
}
- Misc
this.(spawnCommand/spawnCommandSync)
switched toexeca
and now defaultscwd
tothis.destinationRoot()
.- Dropped support for kebab case options.
composeWith()
isn't chainable anymore and delegates the running to the Environment for singleton checks.- Replaced
registerTransformStream
withqueueTransformStream
.
New api executes transformations before the commit operation, and is executed for every generator. - Dependencies update.