@figma/code-connect

v1.1.4
A tool for connecting your design system components in code with your design system in Figma

dev

tsx src/cli.ts

test

npm run test:no-coverage -- --coverage

build

rm -rf dist && npm run typecheck && tsc

bundle

npm run build && npm pack && mkdir -p bundle && mv figma-code-connect*.tgz bundle

test:ci

npm run test:non-mac -- --runInBand

build:web

pnpm build

test:fast

npm run test -- --testPathIgnorePatterns=template_rendering.test.ts --testPathIgnorePatterns=e2e_parse_command_swift.test.ts --testPathIgnorePatterns=e2e_wizard_swift.test.ts

typecheck

tsc --noEmit -p tsconfig-typecheck.json

bundle:cli

npm run build:webpack && mkdir -p bundle-cli && pkg --compress Brotli webpack-dist/figma.js

bundle:npm

npm run build && npm run bundle:npm-readme:prepare && npm pack && mkdir -p bundle-npm && mv figma-code-connect*.tgz bundle-npm; npm run bundle:npm-readme:restore

test:swift

npm run test -- --runInBand --testPathPattern=e2e_parse_command_swift.test.ts --testPathPattern=e2e_wizard_swift.test.ts --testPathPattern=e2e_parse_command_swift_xcodeproj.test.ts

publish:npm

npm install && npm run build && npm run bundle:npm-readme:prepare && npm publish --access public; npm run bundle:npm-readme:restore

test:wizard

npm run test -- --runInBand --testPathPattern=e2e_wizard_react.test.ts --testPathPattern=e2e_wizard_swift.test.ts

bundle:local

cp package.json package.json.bak && grep -v 'workspace:' package.json > package.json.tmp && mv package.json.tmp package.json && npm run build && npm pack && mkdir -p bundle-local && mv figma-code-connect*.tgz bundle-local; mv package.json.bak package.json

test:non-mac

npm run test -- --testPathIgnorePatterns=e2e_parse_command_swift.test.ts --testPathIgnorePatterns=e2e_wizard_swift.test.ts --testPathIgnorePatterns=e2e_parse_command_swift_xcodeproj.test.ts

build:webpack

webpack --mode production

bundle:cli:mac

npm run bundle:cli -- -o bundle-cli/figma-mac --target node18-mac-x64,node18-mac-arm64

bundle:cli:win

npm run bundle:cli -- -o bundle-cli/figma-win --target node18-win-x64

benchmarking:run

npx tsx ./src/connect/wizard/__test__/prop_mapping/prop_mapping_benchmarking.ts

bundle:cli:linux

npm run bundle:cli -- -o bundle-cli/figma-linux --target node18-linux-x64,node18-linux-arm64

test:no-coverage

cross-env NODE_OPTIONS=--experimental-vm-modules npx jest

bundle:cli:mac:arm64

npm run bundle:cli -- -o bundle-cli/figma-mac-arm64 --target node18-mac-arm64

bundle:npm-readme:prepare

mv README.md ../cli-README.md.bak && cp ../README.md . && npx tsx ../scripts/make_readme_links_absolute.ts

bundle:npm-readme:restore

mv ../cli-README.md.bak README.md
npm i @figma/code-connect

Metadata

  • MIT
  • >=16
  • Figma
  • released 9/30/2024

Downloads