Giter VIP home page Giter VIP logo

figma-plugin-react-template's Introduction

Hey, I'm Nir! ๐Ÿ‘‹๐Ÿผ


GitHub followers

Developing professionally since 2014. From Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
Author of react-native-size-matters ๐Ÿ“.
Currently working for Island.

I'm an experienced Full Stack software developer with a strong background in Node.js within microservices environment and React.

figma-plugin-react-template's People

Contributors

dependabot[bot] avatar fliklab avatar jsakas avatar l-jovi avatar lauthieb avatar nirsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

figma-plugin-react-template's Issues

update manifest.json

Thanks for your project which could help me quickly build figma plugin boilerplate :)

I find the little issue from your template manifest.json file

...
"editorKey": ["figma"]
...

already not be recognized by figma editor, and it could be changed to

...
  "editorType": [
    "figma",
    "figjam"
  ]
...

Would you mind fix the problem, thx for your time :)

what's the purpose of code.js and code.ts?

i've been editing the controller.ts file, which has been working fine. i assume controller.ts gets compiled into code.ts and .js in the /dist directory. but what are code.js and code.ts in the /src directory? they don't seem to do anything yet when i delete the files, my plugin breaks.

Images not loading from assets folder

I am trying to use an image from assets folder like:

<img src={require('../assets/logo.svg')} alt="NONE"/>

The plugin UI is always displaying "NONE".

App.tsx is located in "components" folder while images are in "assets" folder, both folders on same level.

Any help here?

cannot import js functions to controller.ts

using regular way to import import { foo } from './func.ts', and call foo() got

TypeError: not a function
at ./src/plugin/controller.ts (PLUGIN_71_SOURCE:119)
at call (native)
at webpack_require (PLUGIN_71_SOURCE:20)
at (PLUGIN_71_SOURCE:84)
at (PLUGIN_71_SOURCE:343)
at call (native)
at (PLUGIN_71_SOURCE:346)

Having a specific licence would be useful

At the moment the codebase is unlicenced, which means that the legal situation for reuse is ambiguous. Would it be possible to attach a specific licence?

It looks like youโ€™ve designed this to be the basis for other repos (as itโ€™s a template) so Iโ€™d suggest that MIT is the most suitable here.

[Off topic] Do you know how to use prettier (not as dev deps) on figma runtime with webpack?

I'm trying to use prettier.format on runtime in my figma plugin.

I'm posting this question as issue since this uses prettier and related in some level.

It's not a adequate place to ask such question, but since there are absolutely no context references to figma related internal runtime erros, i'm posting here with some hope.

The original issue was posted on - prettier/prettier#11046

And my plugin trying to integrate prettier runtime is - https://github.com/bridgedxyz/assistant

P.s the plugin is based on this template (small changes on webpack config though)

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.