Skip to content

Commit

Permalink
### Changed
Browse files Browse the repository at this point in the history
* Require `craftcms/cms` in `composer.json` again
* Translations are a lowercase version of the pluginHandle
  • Loading branch information
khalwat committed Mar 12, 2017
1 parent dbf952d commit 33b58a8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGLOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# generator-craftplugin Changelog

## 1.2.21 - 2017.03.12
### Changed
* Require `craftcms/cms` in `composer.json` again
* Translations are a lowercase version of the pluginHandle

## 1.2.20 - 2017.03.05
### Changed
* Refactored the `_Record.php` template to be in line with the current Craft 3 beta
Expand Down
1 change: 1 addition & 0 deletions app/templates/api_version_3_0/_composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
}
],
"require": {
"craftcms/cms": "~3.0.0-beta.1"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion app/templates/api_version_3_0/src/_Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function (PluginEvent $event) {
*/
<% } else { -%>
<% } -%>
Craft::info('<%= pluginHandle %> ' . Craft::t('<%= pluginCamelHandle %>', 'plugin loaded'), __METHOD__);
Craft::info('<%= pluginHandle %> ' . Craft::t('<%= pluginDirName %>', 'plugin loaded'), __METHOD__);
}

<% if (pluginComponents.indexOf('variables') >= 0){ -%>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "generator-craftplugin",
"version": "1.2.20",
"version": "1.2.21",
"description": "generator-craftplugin is a Yeoman generator for Craft CMS plugins",
"main": "app/index.js",
"files": [
"app"
],
"repository": "khalwat/generator-craftplugin",
"repository": "nystudio107/generator-craftplugin",
"keywords": [
"yeoman-generator",
"generator-craftplugin",
Expand Down

0 comments on commit 33b58a8

Please sign in to comment.