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

chore: upgrade style-dictionary #882

Merged
merged 5 commits into from
Mar 2, 2022
Merged

Conversation

jinlee93
Copy link
Contributor

@jinlee93 jinlee93 commented Mar 2, 2022

Summary:

  • upgrades style-dictionary to v3
  • removes js colors

Test Plan:

  • manually tested via 0.8.1-alpha
  • scripts work

@jinlee93 jinlee93 requested a review from a team March 2, 2022 19:25
CHANGELOG.md Outdated




Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure if we commit the alpha releases, can revert

Copy link
Contributor

Choose a reason for hiding this comment

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

If the alpha was only for testing the change, I think reverting makes sense. Could imagine keeping alpha releases around if we're building upon a big branch or something

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

size-limit report

Path Size
components 71.99 KB (0%)
styles 4.47 KB (0%)

@@ -18,7 +18,7 @@
"url": "git+https://github.com/chanzuckerberg/edu-design-system.git"
},
"scripts": {
"build": "style-dictionary build --config=./style-dictionary.config.js",
"build": "node ./style-dictionary.config.js",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

since we're not using the json config, should have been doing this to begin with. (also errors in compile in v3) https://amzn.github.io/style-dictionary/#/using_the_npm_module

Copy link
Contributor

Choose a reason for hiding this comment

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

oop good catch

@@ -3,7 +3,7 @@ const EDSStyleDictionary = StyleDictionary.extend({
source: ["properties/**/*.json"],
platforms: {
scss: {
transforms: [...StyleDictionary.transformGroup.scss, "name/kebabCase"],
transforms: [...StyleDictionary.transformGroup.scss, "name/cti/kebab"],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

built in now

CHANGELOG.md Outdated




Copy link
Contributor

Choose a reason for hiding this comment

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

If the alpha was only for testing the change, I think reverting makes sense. Could imagine keeping alpha releases around if we're building upon a big branch or something

@@ -18,7 +18,7 @@
"url": "git+https://github.com/chanzuckerberg/edu-design-system.git"
},
"scripts": {
"build": "style-dictionary build --config=./style-dictionary.config.js",
"build": "node ./style-dictionary.config.js",
Copy link
Contributor

Choose a reason for hiding this comment

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

oop good catch

@anniehu4
Copy link
Contributor

anniehu4 commented Mar 2, 2022

looks good, pending removing the alpha release changes!

@codecov
Copy link

codecov bot commented Mar 2, 2022

Codecov Report

Merging #882 (40820dc) into main (78832db) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #882   +/-   ##
=======================================
  Coverage   95.83%   95.83%           
=======================================
  Files         142      142           
  Lines        1128     1128           
  Branches      171      171           
=======================================
  Hits         1081     1081           
  Misses         46       46           
  Partials        1        1           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78832db...40820dc. Read the comment docs.

@jinlee93 jinlee93 merged commit dba4d21 into main Mar 2, 2022
@jinlee93 jinlee93 deleted the jlee/upgrade-style-dictionary branch March 2, 2022 21:50
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