Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Re-do of global namespace removal, and transform action update to support multi files #49

Merged
merged 7 commits into from
Aug 4, 2022

Conversation

iryanclarke
Copy link
Collaborator

@iryanclarke iryanclarke commented Aug 4, 2022

This update allows us to support multi-file sync, as the data structure within the base token file has been changed!

The old structure wrapped each "Section" in a master object, while multi-file sync now exports these into separate files! This meant we had to remove the global wrapper in the main tokens.json file, as the references in the Figma Tokens plugin were broken.

This, in turn broke our configuration of transform-tokens, and thus we had to update the npm commands to properly parse these values into raw ones again!

@iryanclarke iryanclarke changed the title Init Re-do of global namespace removal, and transform action update to support multi files Aug 4, 2022
@CCAyl
Copy link
Contributor

CCAyl commented Aug 4, 2022

i think this is g2g! good call on calling in transformed-core.json. keeps things tidy

export const grey800 : string;
export const shadeswhite : string;
export const shadesblack : string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll do a follow up transformer to get rid of the shades prefix

@iryanclarke iryanclarke merged commit 09255a6 into main Aug 4, 2022
@iryanclarke iryanclarke deleted the actual-global-removal-FINAL branch August 30, 2022 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants