Skip to content

Releases: craftcms/generator

2.0.1

08 Mar 18:59
2.0.1
84974a4
Compare
Choose a tag to compare
  • Generated field types, utilities, and widget types now provide default icons.
  • Fixed an error that occurred when generating a utility. (#34)

2.0.0

06 Mar 12:55
2.0.0
aa90ce2
Compare
Choose a tag to compare
  • Craft Generator now requires Craft 5.
  • Renamed craft\generator\Command\EVENT_REGISTER_GENERATOR_TYPES to EVENT_REGISTER_GENERATORS.

1.7.0

06 Mar 12:14
1.7.0
ef13630
Compare
Choose a tag to compare
  • Added the behavior generator. (#27)
  • Generator now prompts for new modules’ names. (#28)
  • Added the --with-strict-types option. (#29)
  • Fixed issues with the default getTriggerHtml() method output for generated element actions. (#30)

1.6.1

11 Aug 01:28
1.6.1
8f3ac6c
Compare
Choose a tag to compare
  • Fixed a double-backslash bug.

1.6.0

11 Aug 01:22
1.6.0
ec56e90
Compare
Choose a tag to compare
  • Added craft\generator\BaseGenerator::messageTwig(). (#25)
  • The plugin generator now ensures that the project’s composer.json file has minimum-stability: dev and prefer-stable: true set. (#22)
  • Fixed a bug where the Service generator was suggesting adding a config() method which defined the service config, even when the target was a module. (#24)

1.5.0

15 May 17:19
1.5.0
e8f5970
Compare
Choose a tag to compare
  • Improved the validation error for private plugins’ handle prompts, for handles that don’t begin with an underscore. (#18)
  • The plugin generator’s “Minimum Craft CMS version” prompt now defaults to the initial minor release of the current Craft version (e.g. 4.4.0 rather than 4.4.11), if running a stable release of Craft 4.4 or later.
  • The plugin generator now warns against using non-unique plugin handles.
  • Generated plugins’ and modules’ init() methods now have a void return type. (#20)
  • Fixed a bug where it was possible to enter invalid UTF-8 characters into the plugin generator prompts, causing an exception when writing the composer.json file.
  • Craft CMS 4.4.11+ is now required.

1.4.0

19 Apr 16:09
1.4.0
7dbe903
Compare
Choose a tag to compare
  • Generated plugins now include a “Create Release” GitHub action, which will create a new GitHub Release whenever the Craft Plugin Store is notified of a new version tag.
  • Fixed a PHP error that occurred when generating a private plugin, if a different minimum Craft version was entered.