Skip to content

Commit

Permalink
Merge pull request #7 from marcoveeneman/custom-vendor
Browse files Browse the repository at this point in the history
feat: Allow theme in the different vendor directory
  • Loading branch information
drabikowy authored Oct 8, 2021
2 parents 331345c + 8d53af7 commit 867c21c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gulp/parentAliases.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ const traverseAliases = themePath => {
);

const parentMatch = themeXML.match(
/<parent>[a-z]+\/[^\-]+\-([a-z]+)<\/parent>/i
/<parent>([a-z]+)\/[^\-]+\-([a-z]+)<\/parent>/i
);

if (parentMatch) {
const parentName = parentMatch[1];
const parentPath = path.resolve(`../theme-${parentName}`);
const parentVendor = parentMatch[1].toLowerCase();
const parentName = parentMatch[2];
const parentPath = path.resolve(`../../${parentVendor}/theme-${parentName}`);

if (fs.existsSync(parentPath)) {
const aliases = {
Expand Down

0 comments on commit 867c21c

Please sign in to comment.