Giter Club home page Giter Club logo

fika's Introduction

fika

A small figma plugin generator using Parcel.

1. Install

npm install @mattdesl/fika -g

2. Create an Empty Folder

Create and move into an empty folder where you'd like to keep all your plugins:

mkdir figma-plugins
cd figma-plugins

Or, you can create a new folder repository per plugin.

3. Generate a new Plugin

The following will generate ./src/my-plugin and start a development server.

fika my-plugin --init

Or, omit the --init flag to continue developing an existing plugin.

Other examples:

# use a different name when generating the plugin
fika some-plugin --init --name="My Cool Plugin"

# generate a plugin without HTML
fika my-cool-plugin --init --no-ui

# continue developing an existing plugin
fika my-existing-plugin

# use a different root folder than ./src
fika lib/my-plugin --init

You can open http://localhost:9966/ to test your UI, and edit the files inside ./src/my-plugin to see them reload.

4. Test Build in Figma

Once you've generated a ./dist folder, open a project in Figma Desktop, select Menu > Plugins > Development > New Plugin. Click "Choose a manifest.json" and find the manifest.json file in ./dist/my-plugin/manifest.json. (notice dist not src).

Now you can run the plugin via Menu or Right Click > Plugins > Image Palette. You can also open the Console via that context menu, and re-run the last plugin via Cmd + Option + P.

5. Build for Production

Kill the server and run the following to build a smaller and more optimized production plugin:

fika my-plugin --build

This will generate assets into ./dist/my-plugin. You can then publish your plugin!

License

MIT, see LICENSE.md for details.

fika's People

Contributors

mattdesl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.