This repository serves as a template for kickstarting your own Figma plugin development using Svelte and TypeScript. Use this template as a foundation for building your custom Figma plugin. The structure includes essential configurations and a minimal setup to help you get started quickly. Feel free to explore the codebase, customize it according to your needs, and contribute to its enhancement.
To get started with the development or testing of this Figma plugin, follow the steps below:
Clone this repository:
https://github.com/Azkii/figma-plugin-svelte-ts
Install dependencies:
npm install
Run the development server:
npm run watch
Open Figma and load the plugin:
watch
: Concurrently runs the Vite development server, and TypeScript and Terser for automatic code compilation and minification.web
: Starts the Vite development server.ui-build
: Builds the UI using Vite in watch mode.controller-build
: Builds the TypeScript controller and minifies it using Terser.analyze-bundle
: Generates a bundle visualization using Vite Bundle Visualizer.