-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: emit token ref values for system values (#1808)
- instead of looking up, then emitting, the literal token value, use a variable reference instead across the board - do this for all possible variables (e.g., ones that look up values in different tiers and not the same file, don't cause bad outputs, etc.) - for now, skip any hard-coded references to other variables as style-dictionary has some bugs - verify that the builds produce an identical outcome (no snapshot changes)
- Loading branch information
1 parent
e123852
commit 10957d0
Showing
13 changed files
with
547 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ignore this file, as it uses token references instead of hard-coded values | ||
src/tokens-dist/css/variables.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ | |
"create-component": "plop", | ||
"lint": "yarn run lint:styles && yarn run lint:scripts", | ||
"lint:fix": "yarn run lint:styles:fix && yarn run lint:scripts:fix", | ||
"lint:styles": "stylelint --ignore-path .gitignore src/**/*.css .storybook/**/*.css", | ||
"lint:styles": "stylelint src/**/*.css .storybook/**/*.css", | ||
"lint:styles:fix": "yarn run lint:styles --fix", | ||
"lint:scripts": "eslint --ignore-path .gitignore --ext=js,jsx,ts,tsx .", | ||
"lint:scripts:fix": "yarn run lint:scripts --fix", | ||
|
@@ -186,8 +186,8 @@ | |
"eslint --fix" | ||
], | ||
"*.css": [ | ||
"stylelint --fix" | ||
"stylelint --fix --allow-empty-input" | ||
] | ||
}, | ||
"packageManager": "[email protected]" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.