Skip to content

Commit

Permalink
Merge branch 'release/1.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Feb 5, 2018
2 parents 0615e11 + 26cf548 commit 0bfe970
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGLOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# generator-craftplugin Changelog

## 1.4.2 - 2018.02.05
### Changed
* Fixed an issue with the translation and AssetBundle aliases

## 1.4.1 - 2018.01.26
### Changed
* Fixed module namespacing for controllers & aliases
Expand Down
2 changes: 1 addition & 1 deletion app/templates/module_api_version_3_0/src/_Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function __construct($id, $parent = null, array $config = [])
$i18n->translations[$id] = [
'class' => PhpMessageSource::class,
'sourceLanguage' => 'en-US',
'basePath' => '@<%= pluginDirName %>/translations',
'basePath' => '@modules/<%= pluginDirName %>/translations',
'forceTranslation' => true,
'allowOverrides' => true,
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function init()
<% if ((typeof codeComments !== 'undefined') && (codeComments)) { -%>
// define the path that your publishable resources live
<% } -%>
$this->sourcePath = "@<%= pluginKebabHandle %>/assetbundles/<%= fieldName[index].toLowerCase() %>field/dist";
$this->sourcePath = "@modules/<%= pluginDirName %>/assetbundles/<%= fieldName[index].toLowerCase() %>field/dist";

<% if ((typeof codeComments !== 'undefined') && (codeComments)) { -%>
// define the dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function init()
<% if ((typeof codeComments !== 'undefined') && (codeComments)) { -%>
// define the path that your publishable resources live
<% } -%>
$this->sourcePath = "@<%= pluginDirName %>/assetbundles/<%= pluginDirName.toLowerCase() %>/dist";
$this->sourcePath = "@modules/<%= pluginDirName %>/assetbundles/<%= pluginDirName.toLowerCase() %>/dist";

<% if ((typeof codeComments !== 'undefined') && (codeComments)) { -%>
// define the dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function init()
<% if ((typeof codeComments !== 'undefined') && (codeComments)) { -%>
// define the path that your publishable resources live
<% } -%>
$this->sourcePath = "@<%= pluginKebabHandle %>/assetbundles/<%= utilityName[index].toLowerCase() %>utility/dist";
$this->sourcePath = "@modules/<%= pluginDirName %>/assetbundles/<%= utilityName[index].toLowerCase() %>utility/dist";

<% if ((typeof codeComments !== 'undefined') && (codeComments)) { -%>
// define the dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function init()
<% if ((typeof codeComments !== 'undefined') && (codeComments)) { -%>
// define the path that your publishable resources live
<% } -%>
$this->sourcePath = "@<%= pluginKebabHandle %>/assetbundles/<%= widgetName[index].toLowerCase() %>widget/dist";
$this->sourcePath = "@modules/<%= pluginDirName %>/assetbundles/<%= widgetName[index].toLowerCase() %>widget/dist";

<% if ((typeof codeComments !== 'undefined') && (codeComments)) { -%>
// define the dependencies
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-craftplugin",
"version": "1.4.1",
"version": "1.4.2",
"description": "generator-craftplugin is a Yeoman generator for Craft CMS plugins",
"main": "app/index.js",
"files": [
Expand Down

0 comments on commit 0bfe970

Please sign in to comment.