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

Add support for --expandCompositionTokens to token-transformer #1000

Closed
six7 opened this issue Jul 8, 2022 · 0 comments · Fixed by #1110
Closed

Add support for --expandCompositionTokens to token-transformer #1000

six7 opened this issue Jul 8, 2022 · 0 comments · Fixed by #1110
Assignees

Comments

@six7
Copy link
Collaborator

six7 commented Jul 8, 2022

We should add support for --expandCompositionTokens in token-transformer.

An expanded composition token should have a value and a type property. The type property should have the type of the property that was set.

For example, the following input

{
  "cardDefault": {
    "type": "composition",
    "value": {
      "borderWidthLeft": "{sizing.md}",
      "borderRadius": "{radii.md}
    }
}

would produce this output:

{
  "cardDefault": {
    "borderWidthLeft": {
      "value": "{sizing.md}",
      "type": "borderWidth"
    },
    "borderRadius": {
      "value": "{radii.md},
      "type": "borderRadius"
    }
}
@six7 six7 changed the title Add support for --expandCompositionTokens Add support for --expandCompositionTokens to token-transformer Jul 8, 2022
@swordEdge swordEdge assigned swordEdge and unassigned swordEdge Jul 14, 2022
@swordEdge swordEdge self-assigned this Aug 3, 2022
@swordEdge swordEdge linked a pull request Aug 3, 2022 that will close this issue
@six7 six7 closed this as completed Aug 13, 2022
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 a pull request may close this issue.

2 participants