Opinionated template for new Figma plugins without UI.
  • TypeScript 100%
2024-09-27 07:41:11 +01:00
.editorconfig Start boilerplate 2024-07-12 19:13:16 +01:00
.gitignore Start boilerplate 2024-07-12 19:13:16 +01:00
.npmrc Closes #3 2024-07-29 14:57:14 +01:00
.nvmrc Closes #3 2024-07-29 14:57:14 +01:00
code.ts Closes #1 2024-07-12 20:31:15 +01:00
LICENSE Start boilerplate 2024-07-12 19:13:16 +01:00
manifest.json Start boilerplate 2024-07-12 19:13:16 +01:00
NOTES.md Closes #3 2024-07-29 14:57:14 +01:00
package.json Closes #3 2024-07-29 14:57:14 +01:00
README.md Closes #3 2024-07-29 14:57:14 +01:00
TEMPLATE.md Closes #5 2024-09-27 07:41:11 +01:00
tsconfig.json Closes #3 2024-07-29 14:57:14 +01:00

template-figma-plugin-script

Opinionated template for new Figma plugins without UI.

Getting Started

  1. Go to or create the plugin folder.
  2. Get the template files:
npx tiged https://codeberg.org/joaopalmeiro/template-figma-plugin-script
  1. Search for template-figma-plugin-script and replace it with the plugin name. Ignore the template repository URL in the NOTES.md file.
  2. Search for Opinionated template for new Figma plugins without UI. and replace it with the (short) plugin description.
  3. Search for João Palmeiro and replace it with the author's name.
  4. Search for joaopalmeiro@proton.me and replace it with the author's email address.
  5. Change the author.url field in the package.json file to the author's website/social media profile.
  6. Install fnm (if necessary).
  7. Run the first two commands in the Development section to install Node.js and the development dependencies.
  8. Open the NOTES.md file and install the plugin-specific dependencies according to the first command in the Commands section.
  9. Delete the TEMPLATE.md file.
  10. Delete the Getting Started section.

Development

Enable Hot reload plugin in Figma.

Install fnm (if necessary).

fnm install && fnm use && node --version && npm --version
npm install
npm run dev
npm run lint
npm run format

Deployment

npm run build