# plugin-boilerplate **Repository Path**: WongKay/plugin-boilerplate ## Basic Information - **Project Name**: plugin-boilerplate - **Description**: Kickstart your awesome Figma plugin with this boilerplate. - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-05-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Figma Plugin Boilerplate

Kickstart your awesome Figma plugin with this boilerplate.


Features

Code Demo

```js export default class ExamplePlugin { constructor() { this.options = [ "Alert File Name", this.main.bind(this), null, { shift: true, option: true, key: "t" } ]; const { figmaPlugin } = window; figmaPlus.createPluginsMenuItem(...this.options); window.examplePlugin = this; } main() { const { App, alert } = window; const fileName = App.getCurrentFileName(); alert(fileName); } } ```

Download & Development

```shell $ git clone https://github.com/figma-plus/plugin-boilerplate ``` ```shell $ yarn install ``` ```shell $ yarn serve ``` ```shell $ yarn test ```

Build a Distribution Bundle

```shell $ yarn build ``` You'll see your bundle inside `dist` directory. Follow the docs instructions to publish it.

License

This project is licensed under the MIT License