Skip to content

Commit 35ee5f8

Browse files
committed
Merge branch 'hotfix/1.5.3'
2 parents 4362bc3 + 516ca7b commit 35ee5f8

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "snowdog/frontools",
33
"description": "Set of front-end tools for Magento 2, based on Gulp.js",
4-
"version": "1.5.2",
4+
"version": "1.5.3",
55
"license": "MIT",
66
"type": "magento2-component"
77
}

helper/inheritance-resolver.js

+7-16
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,10 @@ module.exports = function(plugins, config, name, tree = true) { // eslint-disabl
1212
[src + '/**'].concat(ignore.map(pattern => '!/**/' + pattern)),
1313
{ nodir: true }
1414
).forEach(srcPath => {
15-
let destPath = path.join(dest, srcPath);
16-
// Iterate through all replace patterns and apply them
17-
if (Array.isArray(replacePattern)) {
18-
replacePattern.forEach(replace => {
19-
destPath = destPath.replace(replace[0], replace[1]);
20-
});
21-
}
22-
else {
23-
destPath = destPath.replace(replacePattern, '');
24-
}
25-
createSymlink(srcPath, destPath);
15+
createSymlink(
16+
srcPath,
17+
path.join(dest, srcPath).replace(src + '/', replacePattern + '/')
18+
);
2619
});
2720
}
2821

@@ -61,21 +54,19 @@ module.exports = function(plugins, config, name, tree = true) { // eslint-disabl
6154
generateSymlinks(
6255
moduleSrc,
6356
themeDest,
64-
[
65-
[moduleSrc, '/' + name]
66-
],
57+
'/' + name,
6758
theme.ignore
6859
);
6960
});
7061
}
7162

7263
if (theme.parent) {
7364
const parentSrc = config.tempPath + config.themes[theme.parent].dest.replace('pub/static', '');
74-
generateSymlinks(parentSrc, themeDest, parentSrc, config.themes[theme.parent].ignore);
65+
generateSymlinks(parentSrc, themeDest, '', config.themes[theme.parent].ignore);
7566
}
7667

7768
// Create symlinks to all files in this theme. Will overwritte parent symlinks if exist.
78-
generateSymlinks(themeSrc, themeDest, themeSrc, theme.ignore);
69+
generateSymlinks(themeSrc, themeDest, '', theme.ignore);
7970
});
8071

8172
resolve();

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "magento2-frontools",
3-
"version": "1.5.2",
3+
"version": "1.5.3",
44
"author": {
55
"name": "Bartek Igielski",
66
"email": "igloczek@gmail.com"

0 commit comments

Comments
 (0)