Skip to content

Commit

Permalink
Merge branch 'hotfix/1.5.14'
Browse files Browse the repository at this point in the history
  • Loading branch information
Igloczek committed Jun 26, 2018
2 parents b7ba83d + 11ff9c4 commit 18347e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions helper/inheritance-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function(plugins, config, name, tree = true) { // eslint-disabl

function generateSymlinks(src, dest, replacePattern, ignore = []) {
plugins.globby.sync(
[src + '/**'].concat(ignore.map(pattern => '!/**/' + pattern)),
[src + '/**'].concat(ignore.map(pattern => '!**/' + pattern)),
{ nodir: true }
).forEach(srcPath => {
createSymlink(
Expand Down Expand Up @@ -42,14 +42,14 @@ module.exports = function(plugins, config, name, tree = true) { // eslint-disabl
themeDependencyTree(name).forEach(themeName => {
const theme = config.themes[themeName],
themeSrc = config.projectPath + theme.src,
themeDest = config.tempPath + theme.dest.replace('pub/static', '');
themeDest = config.tempPath + theme.dest.replace(/(.*)(?=frontend|adminhtml)/, '/');

// Clean destination dir before generating new symlinks
plugins.fs.removeSync(themeDest);

// Create symlinks for parent theme
if (theme.parent) {
const parentSrc = config.tempPath + config.themes[theme.parent].dest.replace('pub/static', '');
const parentSrc = config.tempPath + config.themes[theme.parent].dest.replace(/(.*)(?=frontend|adminhtml)/, '/');
generateSymlinks(parentSrc, themeDest, '', config.themes[theme.parent].ignore);
}

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": "magento2-frontools",
"version": "1.5.13",
"version": "1.5.14",
"author": {
"name": "Bartek Igielski",
"email": "[email protected]"
Expand Down

0 comments on commit 18347e3

Please sign in to comment.