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

Convert Figma project to Vite + React #7453

Merged
merged 8 commits into from
Jan 27, 2025
Merged

Conversation

NigelBreslaw
Copy link
Member

@NigelBreslaw NigelBreslaw commented Jan 24, 2025

A Figma plugin is just a single javascript file which means no out of the box way to split files, import helper libraries and scale the project. It's also a vanilla web site for making the UI.

The PR updates the project to use Vite. It allows normal project spliting for typescript and css files. It provides a simpler way for the plugin and backend code to communicate. React is used to then build the plugin interface.

It will make updating and distributing the plugin simpler. Better documentation of the structure is needed though. Will do that in a later PR.

The backend code is under 'backend' however Vite gets quite confused when the frontend isn't in a src folder. So for now I gave up on renaming that to 'frontend'

@NigelBreslaw NigelBreslaw requested a review from tronical January 27, 2025 08:37
@tronical tronical force-pushed the nigel/figma-to-vite-react branch from 680708f to 001b4f8 Compare January 27, 2025 09:27
@tronical tronical force-pushed the nigel/figma-to-vite-react branch from 001b4f8 to f373ae6 Compare January 27, 2025 09:34
@NigelBreslaw NigelBreslaw merged commit facd460 into master Jan 27, 2025
37 checks passed
@NigelBreslaw NigelBreslaw deleted the nigel/figma-to-vite-react branch January 27, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants