Skip to content

Releases: yeoman/generator

v0.22.1

16 Dec 21:41
Compare
Choose a tag to compare

Bug fixes

  • Fix reliance on process.cwd(), we're now correctly always basing ourselves on env.cwd
  • Fix NamedBase deprecation warning being log everytime you imported yeoman-generator

v0.22.0

15 Dec 07:00
Compare
Choose a tag to compare

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 an AbortedError rather than calling process.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 deprecated
  • require('yeoman-generator').test is deprecated (as explained higher)
  • require('yeoman-generator').assert is deprecated in favor of directly using require('yeoman-assert')
  • require('yeoman-generator').generators is deprecated (you can do the same with require('yeoman-generator'))

0.21.1

22 Oct 12:26
Compare
Choose a tag to compare

0.21.0

22 Oct 11:12
Compare
Choose a tag to compare

Update dependencies.

v0.20.3...v0.21.0

v0.20.3

21 Aug 07:11
Compare
Choose a tag to compare

Fix bug: When a modified file conflicted in the context of composed generators and a user chose to "skip" the file, any following composed generator would re-ask the same question. Now each file is correctly processed once.

v0.20.2

15 Jul 19:00
Compare
Choose a tag to compare
  • Fix issue where falsy prompt values wouldn't be stored.
  • Fix issue with spawnCommandSync() and node 0.10

v0.20.1

17 May 08:07
Compare
Choose a tag to compare

Make sure --skip-install option is shown in the --help menu.

v0.20.0

17 May 07:30
Compare
Choose a tag to compare

New features

  1. generator#spawnCommandSync() now allows you to run a command synchronously.
  2. 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 and this.template are no longer evaluated as templates (no more this.template('dir/<%= filename %>.js'))

v0.19.2

19 Apr 07:43
Compare
Choose a tag to compare

Fix bug with this.extract() where the method would create an empty tarball.

v0.19.1

06 Apr 07:31
Compare
Choose a tag to compare
  • Fix issue with RunContext#withOptions() where name wouldn't be normalized to both camel and kebab case. We now convert names to both style to provide a more reliable behavior.