Skip to content

Commit

Permalink
Merge pull request #18 from palmetto/develop
Browse files Browse the repository at this point in the history
Fixing incorrect build filter names.
  • Loading branch information
juanfabrega authored Jun 16, 2020
2 parents c974b06 + f827d7f commit dd11f04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ console.log('\n==============================================');

// Register Custom Filters
StyleDictionary.registerFilter({
name: 'isColor',
name: 'isCategoryColor',
matcher: (prop) => prop.attributes.category === 'color',
});

StyleDictionary.registerFilter({
name: 'isFontSize',
name: 'isCategorySize',
matcher: (prop) => prop.attributes.category === 'size',
});

Expand Down
12 changes: 6 additions & 6 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"files": [{
"destination": "variables-color.scss",
"format": "scss/variables",
"filter": "isColor"
"filter": "isCategoryColor"
},
{
"destination": "variables-size.scss",
"format": "scss/variables",
"filter": "isFontSize"
"filter": "isCategorySize"
}
]
},
Expand All @@ -22,12 +22,12 @@
"files": [{
"destination": "variables-color.css",
"format": "css/variables",
"filter": "isColor"
"filter": "isCategoryColor"
},
{
"destination": "variables-size.css",
"format": "css/variables",
"filter": "isFontSize"
"filter": "isCategorySize"
}
]
},
Expand Down Expand Up @@ -69,11 +69,11 @@
"files": [{
"destination": "variables-color.js",
"format": "javascript/module",
"filter": "isColor"
"filter": "isCategoryColor"
}, {
"destination": "variables-size.js",
"format": "javascript/module",
"filter": "isFontSize"
"filter": "isCategorySize"
}]
}
}
Expand Down

0 comments on commit dd11f04

Please sign in to comment.