{"id":13765145,"url":"https://github.com/rsms/figplug","last_synced_at":"2025-04-05T13:01:45.616Z","repository":{"id":40380275,"uuid":"194001173","full_name":"rsms/figplug","owner":"rsms","description":"Figma plugin builder","archived":false,"fork":false,"pushed_at":"2023-05-06T03:57:33.000Z","size":6480,"stargazers_count":365,"open_issues_count":9,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T18:09:00.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rsms.me/figplug/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rsms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-06-27T01:26:08.000Z","updated_at":"2025-03-29T09:56:07.000Z","dependencies_parsed_at":"2022-08-02T01:09:36.991Z","dependency_job_id":"3d643017-b3ec-4b9f-8672-d353c5574a4a","html_url":"https://github.com/rsms/figplug","commit_stats":{"total_commits":113,"total_committers":2,"mean_commits":56.5,"dds":0.008849557522123908,"last_synced_commit":"a3f377f6140728ff4990018425c506e8356fff53"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Ffigplug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Ffigplug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Ffigplug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Ffigplug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsms","download_url":"https://codeload.github.com/rsms/figplug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339145,"owners_count":20923013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T16:00:34.555Z","updated_at":"2025-04-05T13:01:45.578Z","avatar_url":"https://github.com/rsms.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","五、插件开发（补充开发入口，明确工具用途）","Plugins development"],"sub_categories":[],"readme":"# figplug\n\nFigma plugin helper.\n\n- Simplify creation of plugins\n- Simplify compiling of plugins\n- Yields plugins with efficient code that loads fast\n- TypeScript\n- Supports React out of the box\n\nInstall: `npm install -g figplug`\n\nExamples:\n\n```sh\n# create a plugin\nfigplug init -ui my-plugin\n# build a plugin\nfigplug build -w my-plugin\n# Your plugin is now available in \"my-plugin/build\".\n# -w makes figbuild watch your source files for changes\n# and rebuild your plugin automatically.\n```\n\n\n### init\n\nInitialize Figma plugins in directories provided as `\u003cdir\u003e`, or the current directory.\n\n```\nUsage: figplug init [\u003cdir\u003e ...]\nInitialize Figma plugins in directories provided as \u003cdir\u003e, or the current directory.\noptions:\n  -ui                Generate UI written in TypeScript \u0026 HTML\n  -html              Generate UI written purely in HTML\n  -react             Generate UI written in React\n  -f, -force         Overwrite or replace existing files\n  -api=\u003cversion\u003e     Specify Figma Plugin API version. Defaults to \"1.0.0\".\n  -name=\u003cname\u003e       Name of plugin. Defaults to directory name.\n  -srcdir=\u003cdirname\u003e  Where to put source files, relative to \u003cdir\u003e. Defaults to \".\".\n  -v, -verbose       Print additional information to stdout\n  -debug             Print a lot of information to stdout. Implies -v\n  -version           Print figplug version information\n```\n\n### build\n\nBuilds Figma plugins.\n\n```\nUsage: figplug build [options] [\u003cpath\u003e ...]\nBuilds Figma plugins.\n\n\u003cpath\u003e  Path to a plugin directory or a manifest file. Defaults to \".\".\n        You can optionally specify an output directory for every path through\n        \u003cpath\u003e:\u003coutdir\u003e. Example: src:build.\n        This is useful when building multiple plugins at the same time.\n\noptions:\n  -w               Watch sources for changes and rebuild incrementally\n  -g               Generate debug code (assertions and DEBUG branches).\n  -O               Generate optimized code.\n  -lib=\u003cfile\u003e      Include a global library in plugin code. Can be set multiple times.\n  -clean           Force rebuilding of everything, ignoring cache. Implied with -O.\n  -nomin           Do not minify or mangle optimized code when -O is enabled.\n  -o=\u003cdir\u003e,\n    -output=\u003cdir\u003e  Write output to directory. Defaults to ./build\n  -v, -verbose     Print additional information to stdout\n  -debug           Print a lot of information to stdout. Implies -v\n  -version         Print figplug version information\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Ffigplug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsms%2Ffigplug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Ffigplug/lists"}