- Open a Terminal (you can use the Spotligh Search to find it)
- Go to directory where you want the plugin to be saved using the
cd
command. For example, if you want to save it in the Documents, you'd writecd ~/Documents
- Paste the following commands into the terminal. They will download the plugin and start a development server.
git clone git@github.com:marianafcosta/yummy-figma-plugin.git; git -C yummy-figma-plugin pull --force; npm install --prefix yummy-figma-plugin/global-style-to-code && npm run start --prefix yummy-figma-plugin/global-style-to-code
- Leave the Terminal window open!
- Open the Figma Desktop app
- Open any design file
- If you're opening the plugin for the first time, go to Plugins > Development > Import plugin from manifest
- This will open a Finder window; go to the folder you downloaded a few steps ago and select the
manifest.json
file in theyummy-figma-plugin/global-style-to-code
sub-directory - The plugin should now be running
- Once imported, subsequent runs of the plugin can be started by going to Plugins > Development > global-style-to-code
- When you're finished testing, go to the Terminal window and press
^C
- You can close the Terminal window