Skip to content

Commit 76b0c63

Browse files
authored
fix(figma-broker): Fix figma-broker for icons only and remove legacy figma-broker (#4344)
* add initial script for pulling svgs from figma * added icons.js for retrieving icons from Assets figma file * added debug mode and dry-run mode * updated icons.js script with comments and jsdoc * added readme to icons exporter * fixed removeviewbox presetdefault warning, added more info about cache and force in readme * removed old figma-broker, removed deps in package.json only used by old figma-broker, replaced old readme with new readme * Update scripts/figma-broker/icons.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * change author of package and in script * update launch.json * fix: fix regex line to apply for all occurences, not just one * fix(figma-broker): use global regex flags for consistent string replacement * fix(figma-broker): fix icon name string slicer
1 parent 7db471a commit 76b0c63

32 files changed

Lines changed: 1617 additions & 1915 deletions

.vscode/launch.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,10 @@
77
{
88
"type": "node",
99
"request": "launch",
10-
"name": "export:tokens",
10+
"name": "icons",
1111
"runtimeExecutable": "pnpm",
12-
"runtimeArgs": ["run-script", "export:tokens"],
13-
"port": 33455
14-
},
15-
{
16-
"type": "node",
17-
"request": "launch",
18-
"name": "export:assets",
19-
"runtimeExecutable": "pnpm",
20-
"runtimeArgs": ["run-script", "export:assets"],
21-
"port": 33455
12+
"runtimeArgs": ["run-script", "icons"],
13+
"cwd": "${workspaceFolder}"
2214
}
2315
]
2416
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262
"storybook": "pnpm storybook:core-react",
6363
"storybook:lab": "pnpm --filter @equinor/eds-lab-react run storybook",
6464
"storybook:data-grid": "pnpm --filter @equinor/eds-data-grid-react run storybook",
65-
"export:tokens": "pnpm --filter @equinor/eds-figma-broker tokens 0TbIXrrObWj80Cf7KucKYFL0",
66-
"export:assets": "pnpm --filter @equinor/eds-figma-broker assets BQjYMxdSdgRkdhKTDDU7L4KU --true",
65+
"icons": "node scripts/figma-broker/icons.js",
6766
"types": "pnpm --filter @equinor/eds-tokens types && pnpm --filter @equinor/eds-utils types && pnpm --filter @equinor/eds-icons types && pnpm --filter @equinor/eds-core-react types && pnpm --filter @equinor/eds-lab-react types && pnpm --filter @equinor/eds-data-grid-react types"
6867
},
6968
"devDependencies": {

pnpm-lock.yaml

Lines changed: 31 additions & 121 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/figma-broker/.dockerignore

Lines changed: 0 additions & 142 deletions
This file was deleted.

scripts/figma-broker/.eslintrc.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)