Skip to content

Commit

Permalink
build: add Figma tokens builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Jul 29, 2024
1 parent 60af366 commit 5bf2eb7
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ build/
coverage/
dist/
tmp/
**/src/generated/
**/src/generated/
packages/web-components-stencil/src/components.d.ts

# Ignore archives
Expand Down
46 changes: 39 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions proprietary/design-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@
},
"scripts": {
"clean": "rimraf dist/",
"prebuild": "npm run clean",
"build": "npm-run-all build:**",
"build": "npm-run-all clean build:figma-tokens build:style-dictionary",
"build:figma-tokens": "token-transformer --throwErrorWhenNotResolved=true figma/*.tokens.json src/generated/figma.tokens.json",
"build:scss": "sass --no-source-map src/:dist/",
"build:style-dictionary": "style-dictionary build --config ./style-dictionary.config.json",
"watch": "npm-run-all watch:**",
"watch:style-dictionary": "chokidar --follow-symlinks --initial --command 'npm run build' 'src/**/*.tokens.json'"
"watch:style-dictionary": "chokidar --follow-symlinks --command 'npm-run-all clean build:figma-tokens build:style-dictionary' 'src/**/*.tokens.json'"
},
"devDependencies": {
"chokidar-cli": "3.0.0",
"npm-run-all": "4.1.5",
"rimraf": "6.0.1",
"style-dictionary": "3.9.2"
"style-dictionary": "3.9.2",
"token-transformer": "0.0.33"
}
}

0 comments on commit 5bf2eb7

Please sign in to comment.