Releases: yeoman/generator
Releases · yeoman/generator
v5.0.1
v5.0.0
Breaking changes
- Requires node 12.
- Requires
[email protected]
(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.
v4.13.0
Release v4.12.0
- Fixes running --help.
- Implement registerPriorities.
Release v4.11.0
- Add Storage caching.
- Add support to generators with no tasks.
- Add Storage proxy, it can be used as a plain js object instead of using get/set.
- Pass the generator as context to ejs (when using built-in shortcuts).
- Bug fixes.
Release v4.10.1
- Add skipLocalCache option.
Cache prompt suggestions only to global yo-rc.
Release v4.10.0
- Add shortcuts to mem-fs-editor methods
- Make properties/functions starting with # reserved for composing.
- Fixes and improvements.
Release v4.9.0
- Add support to prompts with storage.
this.prompt(prompts, this.config);
will use the storage to read/write answers.- Prompt is ignored if the value is
!== undefined
(pass --ask-answered to force the prompt to be shown, stored value is the default value)
- Prompt is ignored if the value is
Release v4.8.3
- Remove run-queue pause.
It doesn’t work due to multiple scheduled runs.
Release v4.8.2
- Improve error handler with newer environments.