takumi-hash / figma-textlint-with-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

figma-textlint-with-local-server

This repository is a prototype of a Plugin that executes textlint on the contents of a Figma TextNode and posts the result as a comment.
Since it is an experimental plugin, we do not guarantee its working.

figma-textlint-prototype.mov

Included in the repository

  • textlint server
    • Runs in a local environment
  • Figma Plugin

Installation

$ git clone git@github.com:macneko-ayu/figma-textlint-with-server.git
$ cd figma-textlint-with-server

textlint server

$ cd textlint-server
$ npm install

Figma Plugin

For development

$ cd figma-textlint
$ npm install

For Figma application

  1. open Figma application on macOS
  2. Select Plugins > Development > Create Plugin... from the menu
  3. Click Click to choose a manifest.json file
  4. Select manifest.json in figma-textlint directory

Usage

  1. Listen to the textlint server on localhost:3000
    $ npm run dev
  2. Open document in Figma application
  3. If the TextNode does not exist, create one
  4. Select Plugins > Development > figma-textlint from the menu
  5. Click Token file button
  6. Select A file containing the Personal Access Token.
    • Click here to learn more about Personal Access Token.
  7. Click Run button

Author

@macneko_ayu

Licence

This software is released under the MIT License, see LICENSE.txt.

About

License:MIT License


Languages

Language:HTML 59.8%Language:TypeScript 30.9%Language:JavaScript 9.3%