GitXplorerGitXplorer
a

figma-to-bundled-html

public
6 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
37de3f1bb3b0b0ba5e738ed723c50cf19f542476

Update lang

aanc95 committed 2 years ago
Unverified
8e6867e0b75431ffa8c5c32b044f9ad03028521b

chore: for img width lager than 50px we use png format

aanc95 committed 2 years ago
Unverified
0a30f9715df9fef96a29065bbe593dbe02bc3109

chore: style beautify

aanc95 committed 2 years ago
Unverified
791cba51131de4ba2722bc203493673a12e1adcc

feat: custom script

aanc95 committed 2 years ago
Unverified
30de3333089036a94cc6d87c718c88bf25564c31

feat: i18n support

aanc95 committed 2 years ago
Unverified
f8289806ff3131103618a0f2988397ab97065ec8

chore: store i18n resources into plugin data

aanc95 committed 2 years ago

README

The README file for this repository.

Below are the steps to get your plugin running. You can also find instructions at:

https://www.figma.com/plugin-docs/setup/

This plugin template uses Typescript and NPM, two standard tools in creating JavaScript applications.

First, download Node.js which comes with NPM. This will allow you to install TypeScript and other libraries. You can find the download link here:

https://nodejs.org/en/download/

Next, install TypeScript using the command:

npm install -g typescript

Finally, in the directory of your plugin, get the latest type definitions for the plugin API by running:

npm install --save-dev @figma/plugin-typings

If you are familiar with JavaScript, TypeScript will look very familiar. In fact, valid JavaScript code is already valid Typescript code.

TypeScript adds type annotations to variables. This allows code editors such as Visual Studio Code to provide information about the Figma API while you are writing code, as well as help catch bugs you previously didn't notice.

For more information, visit https://www.typescriptlang.org/

Using TypeScript requires a compiler to convert TypeScript (code.ts) into JavaScript (code.js) for the browser to run.

We recommend writing TypeScript code using Visual Studio code:

  1. Download Visual Studio Code if you haven't already: https://code.visualstudio.com/.
  2. Open this directory in Visual Studio Code.
  3. Compile TypeScript to JavaScript: Run the "Terminal > Run Build Task..." menu item, then select "tsc: watch - tsconfig.json". You will have to do this again every time you reopen Visual Studio Code.

That's it! Visual Studio Code will regenerate the JavaScript file every time you save.