Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature/filter default branches #82

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/cssGenerate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function processComponent(readBasePath) {
writeCss(destination, [{ selector: ':root', tokensObject: componentTokens }]);
}

export function generateCSS() {
processFoundation(nodePath.join(process.cwd(), 'temp', 'foundation', 'main', 'tokens'));
export function generateCSS() {
processFoundation(nodePath.join(process.cwd(), 'temp', 'foundation', branches.foundation[0], 'tokens'));
processComponent(nodePath.join(process.cwd(), 'temp', 'components'));
}
4 changes: 1 addition & 3 deletions scripts/tokenProcessor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ async function getBranches() {
branchList.forEach((branch) => {
switch (branch) {
case 'main':
branches.foundation.push('main');
break;
case 'master':
branches.foundation.push('master');
break;
case 'dev':
branches.foundation.push(branch);
break;
default:
branches.components.push(branch);
Expand Down