Skip to content

Commit ae58339

Browse files
[CMSDS-3687] Configure Figma Code Connect (#3844)
* Basic React configuration * Add npm scripts * Prevent processing of figma files * Dont fail type checking * Add figma code connect dependency
1 parent cbfb720 commit ae58339

File tree

4 files changed

+863
-49
lines changed

4 files changed

+863
-49
lines changed

figma.config.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"codeConnect": {
3+
"importPaths": {
4+
"src/components/*": "@cms/design-system"
5+
},
6+
"include": ["/packages/design-system/src/components/**/*.{tsx,jsx}"],
7+
"exclude": [
8+
"**/fonts",
9+
"**/images",
10+
"**/*.stories.tsx",
11+
"**/styles",
12+
"**/*.test.tsx",
13+
"**/utilities",
14+
"**/web-components"
15+
],
16+
"label": "React",
17+
"interactiveSetupFigmaFileUrl": "https://www.figma.com/design/OYkYP4pC9jwS7j2qafwmiv/"
18+
}
19+
}

gulpfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ copyJSON.displayName = '📎 copying json data to dist folder';
198198
const jsSrcGlob = [
199199
`${srcPath}/components/**/*.{js,jsx,ts,tsx}`,
200200
`!${srcPath}/components/**/*{.test,.test.interaction,.spec,.d,.stories}.{js,jsx,ts,tsx}`,
201+
`!${srcPath}/components/**/*.figma.{js,jsx,ts,tsx}`,
201202
`!${srcPath}/components/setupTests.{js,jsx,ts,tsx}`,
202203
`!${srcPath}/components/**/{__mocks__,__tests__}/**/*`,
203204
];

0 commit comments

Comments
 (0)