bernaferrari / FigmaToCode

Generate responsive pages and apps on HTML, Tailwind, Flutter and SwiftUI.
https://www.figma.com/community/plugin/842128343887142055
GNU General Public License v3.0
3.58k stars 262 forks source link

Runtime Commands #79

Open Mentors4EDU opened 11 months ago

Mentors4EDU commented 11 months ago

This runs with Turborepo. Is there a recommended version? Can you run this w/ NPM as well?

Docs were a bit vague on runtime/build requirements

bernaferrari commented 11 months ago

Yeah, they changed many times and I haven't had time to update the docs, sorry. :(

Turbo-repo is "less needed" (it is just a npm run all, sort of).

Yes, theoretically you can run with NPM, but you probably need to set-up workspaces first. Right now, the recommended way is pnpm.

Just pnpm i, and pnpm dev (which calls turbo dev). This will build a nextjs website with a debug UI and the plugin, if you want the plugin only, you can just cd to the plugin dir and pnpm dev from there.

After you install from pnpm, you can execute from npm, but I think you need to install the first time using pnpm.

xiaoshude commented 8 months ago

how to run the test in local dev

bernaferrari commented 8 months ago

The tests were disabled on the last version in favor of the debug UI, so pnpm i and pnpm dev gives everything you need