Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of .figmaexportrc.ts #76

Merged
merged 4 commits into from Sep 18, 2020
Merged

Usage of .figmaexportrc.ts #76

merged 4 commits into from Sep 18, 2020

Conversation

marcomontalbano
Copy link
Owner

If you prefer, you can create a .figmaexportrc.ts and use TypeScript instead.
For doing so, you just need to install a few new dependencies in your project.

npm install --save-dev typescript ts-node @types/node @figma-export/types

and slightly change your package.json

{
  "scripts": {
+   "figma:export": "ts-node ./node_modules/.bin/figma-export use-config .figmaexportrc.ts"
  }
}

You can take a look at .figmaexportrc.example.ts for more details.

Closes #74

@marcomontalbano marcomontalbano self-assigned this Sep 17, 2020
@marcomontalbano marcomontalbano added the PR: New Feature 🚀 Only for pull request. New feature label Sep 17, 2020
@marcomontalbano marcomontalbano added this to the v3.0.0 milestone Sep 17, 2020
@marcomontalbano marcomontalbano linked an issue Sep 17, 2020 that may be closed by this pull request
@marcomontalbano marcomontalbano merged commit 7a9a2bf into next-3-dev Sep 18, 2020
@marcomontalbano marcomontalbano deleted the figmaexportrc-ts branch September 18, 2020 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: New Feature 🚀 Only for pull request. New feature
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Be able to use .figmaexportrc.ts
1 participant