Releases: yeoman/generator
Releases · yeoman/generator
v0.22.3
v0.22.2
v0.22.1
v0.22.0
New features
- Async tasks can now return a Promise instead of calling
this.async()
generator#registerTransformStream()
can now take an array of transform streams- Extracted
require('yeoman-generator').test
to a new package (require('yeoman-test')
in the hope on reducing the size of the dependencies on the end users)
Integration improvement
- When the user select
abort
in a conflict prompt, we're now throwing anAbortedError
rather than callingprocess.exit()
Deprecation
Remember, these only log deprecation warnings in the console and are not yet removed. Follow the instructions on these warnings to update your code.
generators.NamedBase
is deprecatedrequire('yeoman-generator').test
is deprecated (as explained higher)require('yeoman-generator').assert
is deprecated in favor of directly usingrequire('yeoman-assert')
require('yeoman-generator').generators
is deprecated (you can do the same withrequire('yeoman-generator')
)
0.21.1
0.21.0
Update dependencies.
v0.20.3
v0.20.2
v0.20.1
v0.20.0
New features
generator#spawnCommandSync()
now allows you to run a command synchronously.- New template engine!!
New template engine
mem-fs-editor
(generator#fs.copyTpl()
) and the older generator#template()
) is now using ejs as the default template engine.
What does that mean for you? Lots of great things! But don't be scared, the syntax is very similar to the old lodash.template()
.
New features:
- Line slurping. Closing template tag with
-%>
will remove the new line. No more hacking with new lines for good output. <%%
will output a literal<%
(useful if you're templating template files you don't want to process)- Support for partial with the
include
method (<%- include('user/show', {user: user}); %>
). The partial path is relative to the template file itself.
What changed? Basically the template settings are not the same anymore. So if you relied on those settings, you'll need to update them to match ejs options.
Deprecation
- Paths you pass to
this.copy
andthis.template
are no longer evaluated as templates (no morethis.template('dir/<%= filename %>.js')
)