{"_id":"@2fold/figma-cli","_rev":"2-dfc2e7cbf4b6b52a9c0d54d0f558d2c3","name":"@2fold/figma-cli","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@2fold/figma-cli","version":"0.0.1","keywords":["figma","cli","plugins","widgets","development"],"author":{"name":"Lee Nelson","email":"lee@2fold.io"},"license":"MIT","_id":"@2fold/figma-cli@0.0.1","maintainers":[{"name":"l.nel","email":"lee@2fold.io"}],"homepage":"https://github.com/yourusername/figma-cli#readme","bugs":{"url":"https://github.com/yourusername/figma-cli/issues"},"bin":{"figma":"dist/index.js"},"dist":{"shasum":"5cdee52c4570743c2e605cbdf92a72c3a919a109","tarball":"https://registry.npmjs.org/@2fold/figma-cli/-/figma-cli-0.0.1.tgz","fileCount":19,"integrity":"sha512-Ptlln5DGDoAxVuV88vjKOWYspqpwOOIYAYM8G53gTFCICYFefI15UsNeyZ2FEbxwU1Vdzv0XH31LaB93xL/VCA==","signatures":[{"sig":"MEUCIQCYmr0C0Cj+SMq5awQ9b8mgBOamGc8jPYnaIHAA1o6h4wIgHFjZBDwz9tpecoufRSxyz3xXwQbp40r0XQjSrpiXeo8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31899},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"scripts":{"dev":"ts-node-dev --esm --respawn --transpile-only src/index.ts","build":"tsc","start":"node dist/index.js","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"l.nel","email":"lee@2fold.io"},"repository":{"url":"git+https://github.com/yourusername/figma-cli.git","type":"git"},"_npmVersion":"10.9.2","description":"CLI for creating and managing Figma plugins and widgets","directories":{},"_nodeVersion":"22.14.0","dependencies":{"inquirer":"^9.2.12","commander":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.19","ts-node-dev":"^2.0.0","@types/inquirer":"^9.0.7"},"_npmOperationalInternal":{"tmp":"tmp/figma-cli_0.0.1_1744238302015_0.9845055500019306","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@2fold/figma-cli","version":"0.0.2","description":"CLI for creating and managing Figma plugins and widgets","type":"module","main":"dist/index.js","bin":{"figma":"dist/index.js"},"scripts":{"build":"tsc","dev":"ts-node-dev --esm --respawn --transpile-only src/index.ts","start":"node dist/index.js","prepare":"npm run build","prepublishOnly":"npm run build"},"keywords":["figma","cli","plugins","widgets","development"],"author":{"name":"Lee Nelson","email":"lee@2fold.io"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/yourusername/figma-cli.git"},"bugs":{"url":"https://github.com/yourusername/figma-cli/issues"},"homepage":"https://github.com/yourusername/figma-cli#readme","engines":{"node":">=18.0.0"},"dependencies":{"commander":"^11.1.0","inquirer":"^9.2.12"},"devDependencies":{"@types/inquirer":"^9.0.7","@types/node":"^20.11.19","typescript":"^5.3.3","ts-node-dev":"^2.0.0"},"_id":"@2fold/figma-cli@0.0.2","types":"./dist/index.d.ts","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-xlmG1UiQmeGfqabCozOSkwNb232kW6aX2mhJvEg+B3VXPl1QVouAbk7oBM1q0LDjxN57RAOOLH89evaHjnj0Kg==","shasum":"47618e19084cf30807d8e6c2250142998002d5a1","tarball":"https://registry.npmjs.org/@2fold/figma-cli/-/figma-cli-0.0.2.tgz","fileCount":19,"unpackedSize":32870,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCUMKMvqEOq3d1ZO8DpkA5xaUBlLkNDEjzJ9ePPz71bBwIgSgSVufepch2UVP4CxC5CqFaHn63SE5TLH/MUMSjfr+Y="}]},"_npmUser":{"name":"l.nel","email":"lee@2fold.io"},"directories":{},"maintainers":[{"name":"l.nel","email":"lee@2fold.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/figma-cli_0.0.2_1744238418951_0.04167599337217043"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-09T22:38:21.949Z","modified":"2025-04-09T22:40:19.321Z","0.0.1":"2025-04-09T22:38:22.195Z","0.0.2":"2025-04-09T22:40:19.128Z"},"bugs":{"url":"https://github.com/yourusername/figma-cli/issues"},"author":{"name":"Lee Nelson","email":"lee@2fold.io"},"license":"MIT","homepage":"https://github.com/yourusername/figma-cli#readme","keywords":["figma","cli","plugins","widgets","development"],"repository":{"type":"git","url":"git+https://github.com/yourusername/figma-cli.git"},"description":"CLI for creating and managing Figma plugins and widgets","maintainers":[{"name":"l.nel","email":"lee@2fold.io"}],"readme":"# Figma CLI\n\nA command-line interface for creating and managing Figma plugins and widgets.\n\n## Installation\n\n```bash\nnpm install -g @2fold/figma-cli\n```\n\n## Usage\n\n### Create a New Plugin or Widget\n\n```bash\nfigma create\n```\n\nThis will start an interactive prompt that will guide you through:\n\n- Choosing between a plugin or widget\n- Setting the name and description\n- Selecting a template (TypeScript or JavaScript)\n- Choosing a UI framework (React with Vite or Next.js)\n- Optionally adding Tailwind CSS for styling\n\n### Build Your Plugin\n\n```bash\nfigma build\n```\n\nBuilds the current plugin in the directory. Make sure you're in the plugin's root directory.\n\n### Run Development Server\n\n```bash\nfigma dev\n```\n\nStarts the development server for the current plugin. Make sure you're in the plugin's root directory.\n\n### Send Messages Between UI and Figma Scene\n\n```bash\nfigma message\n```\n\nStarts an interactive prompt to send messages between the iframe and Figma scene. The available message types are automatically detected from your `ui/src/messages.ts` file.\n\n## Project Structure\n\nWhen you create a new plugin, it will have the following structure:\n\n```\nmy-plugin/\n├── ui/                 # UI code (React/Next.js)\n│   ├── src/\n│   │   ├── messages.ts # Message types and handlers\n│   │   └── ...        # UI components\n│   └── package.json\n├── src/               # Plugin code\n│   ├── code.ts       # Main plugin code\n│   └── ...           # Plugin components\n├── manifest.json     # Plugin configuration\n└── package.json      # Project configuration\n```\n\n## Development\n\nTo contribute to this project:\n\n1. Clone the repository\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n3. Build the project:\n   ```bash\n   npm run build\n   ```\n4. Run in development mode:\n   ```bash\n   npm run dev\n   ```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}