-
Notifications
You must be signed in to change notification settings - Fork 207
feat(tokens): support latest style-dictionary build #2500
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
Conversation
File metricsSummaryTotal size: 2.25 MB* Table reports on changes to a package's main file. Other changes can be found in the collapsed Details section below.
File change detailsaccordion
assetcard
calendar
card
colorhandle
colorslider
dropzone
menu
swatch
table
thumbnail
underlay
well
tokens
* An ASCII character in UTF-8 is 8 bits or 1 byte. |
|
🚀 Deployed on https://pr-2500--spectrum-css.netlify.app |
676fef5 to
2c41fa6
Compare
9548f0f to
deeeac9
Compare
16f409e to
c0f9463
Compare
|
098738b to
dc002cf
Compare
dc002cf to
ae16d2a
Compare
ae16d2a to
6cd570b
Compare
dd0694c to
b565823
Compare
b565823 to
20705b6
Compare
20705b6 to
9164f9f
Compare
9164f9f to
9880b3a
Compare
cbbffd8 to
e1a3792
Compare
|
Something to evaluate: https://github.com/storybookjs/storybook/pull/29676/files |
castastrophe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made a few updates based on this feedback and added more context. Let me know if you want to sync soon and I can talk through any remaining questions as well.
@marissahuysentruyt It's a tough one to validate yeah because the goal is that everything works the same but now instead of CJS, we're leveraging ESM syntax and the latest release of style-dictionary. It's maybe a subtle performance gain in how fast it runs but overall, hopefully, no significant change. As for the numbers being off, we probably had a token change since I wrote up the test cases so the file sizes may have updated. |
5c0aa6a to
47de29e
Compare
marissahuysentruyt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you noted, this branch seems to be running the same as before. 👍 I don't think I see any glaring issues, so I'm good to approve. Thanks also for the extra context and the few extra commands to help us validate!
70f1c73 to
982d764
Compare
982d764 to
a3063fa
Compare
Looks like the Storybook updates are still in the yarn.lock file, so the Docs descriptions are still missing on the PR build.
a3063fa to
93cff43
Compare
* chore: adds support to parse "transparent" token references (#3452) * feat(tokens): add transparent token handling * adds transparent mapping into rgb-mapping plugin - custom properties that reference transparent tokens will now be mapped to their corresponding transparent rgb/opacity tokens - extends the work that the rgb-mapping plugin already does * test: add plugin test cases * chore(plugins/postcss-rgb-mapping): update README.md * chore: add changeset * chore: release (#3673) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(tokens): support style-dictionary build in windows env (#2500) --------- Co-authored-by: Marissa Huysentruyt <69602589+marissahuysentruyt@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Description
When adding an experimental windows-latest run, I found that the style-dictionary compilation was failing pretty terrifically. This PR aims to fix that by wrapping pathing in path.join so that it can be rendered in a windows-friendly format.
Update: Our windows compatibility issues are much more complex than anticipated. Those updates, while excellent for hardening the tooling here, did not solve the problem(s). The scope of this pull request is no longer to support Windows builds for CI, but instead of handle the breaking change migration for style-dictionary.
Hardening steps
Update the .gitattributes to force windows to use lf instead of crlf so that the generated mods files don't show a diff after the build.
Switch the style-dictionary build to use the vanilla command instead of the nx executor.
How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
yarn builder tokens. Expect the token build to create the following assets:Validation steps
This can be validated via CI which will try to run the tokens build in windows. If the task fails, this PR did not work.
To-do list