- Improved the module's
_Service.php
template - Removed
schemaVersion
from thecomposer.json
'sextra
array - Added the public property
$schemaVersion
in the plugin's primary class
- Fixed an issue with the translation and AssetBundle aliases
- Fixed module namespacing for controllers & aliases
- Fixed an issue with empty names for various module components
- Added support for modules via
module_api_version_3_0
- Fixed the Craft 3 API
Tasks
to generate proper Craft 3 QueueJobs
- Added Code Comment documentation to Craft 3 API
Tasks
- Handle a default name for Fields in the Craft 3 API, in case they are left blank
- Fixed a typo in
someFunction
- Removed
repositories
fromcomposer.json
- Added Craft app API inspections for PhpStorm in the templates
- Updated the
craftcms/cms
version to^3.0.0-RC1
in thecomposer.json
template
- Update how twig extensions are registered
- Fixed an issue with code comments being turned off is not respected from the command line
- The code comments setting is now stored from session to session
- Fixed an issue with undefined indexes for the Craft 3.x APIs
- Fixed the generated CP assets for the Craft 3.x APIs
- Fixed the Yii asset bundle aliases, which should be the directory name, not the kebab-handle
- Craft 3 beta 23 compatibility
config.php
files should be kebab-case, too
- More kebab-case fixes
- Initial Craft 3 beta 20 compatibility
- Switched over to
yarn
- For beta 20, extra.handle in composer.json should be "foo-bar" instead of "fooBar"
- src/translations/en/foobar.php now renamed to foo-bar.php
- Craft::t() calls now pass 'foo-bar' as the first argument instead of 'foobar'
- the |t filters in the generated template(s) are now |t('foo-bar') (these were incorrectly not passing any category currently, meaning that they will default to the site category)
- defineTemplateComponent() is now replaced with a listener for the defineComponents event on craft\web\twig\variables\CraftVariable
- Installation instructions in the readme should only cover Composer installs (Beta 20 dropped support for manual plugin installs)
- Changed the date format to YYYY-MM-DD for
CHANGLOG.md
- Added a
.craftplugin
file that defines the settings of the plugin - Added the ability to add components on ad-hoc via
yo craftplugin --controllerName="Something"
- Added a video to the documentation showing how all of this works
- Added more documentation on using
yo craftplugin
- Refresh the Yii schema caches after adding tables in the
Install.php
migration
- Renamed
someField
->someAttribute
to fix Twig errors on the plugin Settings page
- Fixed the
Install.php
migration to sync with Craft beta changes ofConnection
->DbConfig
- Updated
composer.json
to add more common editor settings,/vendor
, etc.
- Added
asset-packagist
tocomposer.json
for Scrutinizer & manual plugin install
- Added an example of accessing a plugin's settings from a service
- Fixed the docblock for the
install
migration - Better log statement formatting
- Changed the
install
migration to use$this->driver = Craft::$app->getConfig()->getDb()->driver;
- Brought the
config.php
file in line with the changes in Craft 3 beta 8
- The
install
migration is now coded more defensively, to add & drop tables only if they don't exist already - Changed
hasSettings
->hasCpSettings
in thecomposer.json
- Changed the
XXXX plugin loaded
log message so that we're no longer concatenating a translated string with a non-translated string
- Removed pointless
DIRECTORY_SEPARATOR
inrenderTemplate()
calls
- Fixed EJS syntax errors in the
Install.php
migration
- Added
dateCreated
,dateUpdated
, anduid
to theInstall.php
migration - Added a
foreignKey
example in theInstall.php
migration
- Changed the translation category
toLowerCase()
for compliance with Craft3.0.0-beta-7
- Added a
$
in front of the@property
variables - Fixed errant output when
codeComments
was on
- Added code inspection typehinting for the
$plugin
static variable in the plugin's main class - Added code inspection typehinting for services via
@property
on plugin's main class
- Fixed an issue with it not including
yii\base\Event
by default
- Require
craftcms/cms
incomposer.json
again - Translations are a lowercase version of the pluginHandle
- Refactored the
_Record.php
template to be in line with the current Craft 3 beta
- Modern-style
[]
forconfig.php
- Check for whether our plugin is being installed in
EVENT_AFTER_INSTALL_PLUGIN
event handlers
- Added a
.gitignore
file for the Craft 3.x API
- Ensure that PHP reserved words are not used for the plugin name; appened "Plugin" if so
- Ensure that PHP reserved words are not used for a component name; append the component type if so
- Added
getContentColumnType()
,normalizeValue()
, &serializeValue()
toFields.php
- Added merging of parent rules for
Fields.php
- Fixed missing
use craft\events\PluginEvent;
in_Plugin.php
- Removed deprecated methods for events like
onAfterInstall
- Added an example of using
Plugins::
events
- Switched the translation back to use the
pluginCamelHandle
doh
- Fixed the composer URL in the README.md to be kebab-case
- Switched the translation back to use the
pluginDirName
- Composer package names and github-related names are now in kebab-case
- Removed the
[]
around the version number inCHANGELOG.md
- Fixed the incorrect
.png
suffix for the plugin asset bundle icon
- Removed
extra.pluginDocumentationUrl
fromcomposer.json
- Added
support.docs
tocomposer.json
- Added
support.issues
tocomposer.json
pluginName
,pluginAuthorName
,pluginDescription
andcopyrightNotice
are now all output unescaped
extra.name
is now the actual plugin name in thecomposer.json
- Removed
extra.version
in thecomposer.json
since it's already specified inversion
- Removed
extra.description
in thecomposer.json
since it's already specified indescription
- Removed
extra.developer
in thecomposer.json
since it's already specified inauthors[]
- Removed
extra.developerUrl
in thecomposer.json
since it's already specified inauthors[]
- Fixed the incorrectly hard-code version in the
composer.json
- Fixed an issue with the generated Element template that would throw a PHP error
- Ensured that the calls to getPublishedUrl() correspond to the published assets directory
- Removed deprecated view.registerCssResource() and view.registerJsResource() calls
- Added proper namespacing for the Field JavaScript
- Changed the default class name from the reserved word
Default
to the plugin handle if no name is provided
- Updated the console controllers and web controllers to return something more useful
- Fixed the generated route URIs to kebab-case the plugin handle
- Fixed the action URIs in the comments for controllers to kebab-case the plugin handle
- plugin -> craft-plugin in
composer.json
- Removed errant tabs from the
composer.json
file
- Craft 3 beta support
- Added config.php
- Fixed the logo in README.md
- Handle a case where a plugin has no services
- Added CP Sections
- Added an example of how to access resources from AssetBundles
- Refactored the
assetbundles
multiple times
- AssetBundle all the things
- Use yii\base\Event as appropriate
- Switch to a better CHANGELOG format
- General cleanup
- [Added] Added Elements
- [Added] Added pluginChangelogUrl
- [Added] Added Fields
- [Improved] New-style arrays for the translations
- [Improved] Moved icon.svg & icon-mask.svg to /src
- [Improved] Moved commands to console/controllers
- [Improved] Moved component templates to templates/_components/
- [Fixed] Fixed broken translations
- [Added] Added Tasks component for the 3.0.x API
- [Improved] Cleaned up the translations
- [Added] Added Utilities component
- [Added] Added the ability to generate multiple ConsoleCommands
- [Improved] Code comments now are more complete, and if disabled, @inheritdoc is used
- [Removed] Removed releases.json from the 3.0.x API
- [Improved] Implemented CHANGELOG.md
- [Improved] Cleaned up the plugin code
- [Added] Added section comments
- [Added] Added widgets
- [Improved] Cleaned up the css/js/template naming
- [Improved] Use DIRECTORY_SEPARATOR everywhere instead of /'s
- [Improved] Added an example Site and CP route for each controller
- [Improved] Added Console Commands to the 3.0.x API
- [Improved] PSR-2 linted code for the 3.0.x API
- [Improved] Various code-cleanup and fixes
- [Improved] We now call
parent::init()
in our overriden init() method in the 2.5.x API
- [Fixed] Fixed an issue that would cause the generator to fail if you had empty Controller or Services names
- [Fixed] Fixed a regression error that would cause Craft CMS API 2.5.x plugins to fail
- [Added] Added CHANGELOG.md to move the changelog to
- [Improved] Updated README.md
- [Added] Added CHANGELOG.md
- [Improved] Updated README.md
- [Improved] More Craft 3 API improvements / additions
- [Improved] Updated README.md
- [Added] Initial Craft 3 support
- [Updated] Updated README.md
- [Fixed] Fixed an issue the FieldType namespacing JS code
- [Updated] Updated README.md
- [Fixed] Fixed an issue with Composer support to the generated plugins
- [Updated] Updated README.md
- [Added] Added Composer support to the generated plugins
- [Updated] Updated README.md
- [Fixed] Fixed a bug where empty service names would generate errors
- [Updated] Updated README.md
- [Fixed] Fix service comment naming error
- [Updated] Updated README.md
- Code Comments fixes
- [Updated] Updated README.md
- Code Comments fixes
- [Updated] Updated README.md
- Code Comments fixes
- [Updated] Updated README.md
- We now
return $value;
in the FieldType'sprepValue()
andprepValueFromPost()
template - [Updated] Updated README.md
- Fixed an issue with the FieldType Javascript
- [Updated] Updated README.md
- Added a "Code Comments" checkbox, so that you can disable the verbose comments in the generated code scaffolding
- [Updated] Updated README.md
- Fixed widget settings issues
- [Updated] Updated README.md
- Fixed widget naming issues
- [Updated] Updated README.md
- We now lowercase the plugin name and handles before Camel-izing them, if the string contains any whitespace
- [Updated] Updated README.md
- Fixes/enhancements to the
_Widget.php
template - [Updated] Updated README.md
- Numbers are now allowed in the plugin name and sub-handle names, so
News2Buffer
for example is okay now - [Updated] Updated README.md
- Added some useful comments to the
Plugin.php
thanks toch.ris
- [Updated] Updated README.md
- Added the ability to create
ConsoleCommands
- [Updated] Updated README.md
- Made the
requires
dependencies an array, to allow for multiple dependencies - Added an a new
Settings
component that determines if the plugin has AdminCP settings, and includes the appropriate templates/resources only if so - Added the ability for BOILERPLATE_FILES to have dependencies just like templates
- [Updated] Updated README.md
- Craft Commerce "Purchasables" now adds an ElementType, Model, and Record
- Fixed an error in the naming of the plugin's Settings.twig template
- [Updated] Updated README.md
- Added a Craft Commerce Purchasable ElementType template
- [Updated] Updated README.md
- We now create per-FieldType and per-Widget CSS/JS/Twig templates, named appropriately
- Cleaned up the Widget.php template
- We now create Body and Settings Twig template for Widgets
- Made the naming of certain templates more consistent
- [Updated] Updated README.md
- In preparation for Craft 3.0, added support for multiple API targets for the plugin scaffolding
- Moved all of the configuration out of the Javascript and into a directory of
.json
files, one file per API target - [Updated] Updated README.md
- Fixes
- [Updated] Updated README.md
- Added the ability to enter as many *Name's as you need, for multiple template files. Just separate them with a ,
- Sanitized all of the templates to remove trailing white space, and converted all tabs to 4 spaces
- [Updated] Updated README.md
- Template fixes
- [Updated] Updated README.md
- Added Tasks to the templates
- [Updated] Updated README.md
- Added Widgets to the templates
- Added additional Record and Model templates if you select ElementTypes
- Minor generated code cleanup
- [Updated] Updated README.md
- Added support for named Services and Controllers
- Cleaned up the naming scheme for all plugin components; null values will be properly handled for all of the *Name's
- [Updated] Updated README.md
- You can now access the generator via the web at pluginfactory.io
- Added support for command line arguments being passed to the generator
- [Updated] Updated README.md
- Added sub-questions for
ElementTypes
,FieldTypes
,Models
, andRecords
so that you can specify the name for each - [Updated] Updated README.md
- Added the
store
property to some questions that should retain the default answers the user gives - Added a selectable list of components that you want included in your plugin, so you can tailor it to exactly what you want included
- Added
field.html
,field.css
, andfield.js
templates for FieldTypes - [Updated] Updated README.me
- Initial release
Brought to you by nystudio107