{"id":19623075,"url":"https://github.com/fusepilot/parcel-plugin-cep-starter","last_synced_at":"2025-06-28T20:08:33.639Z","repository":{"id":42210309,"uuid":"115880667","full_name":"fusepilot/parcel-plugin-cep-starter","owner":"fusepilot","description":"Starter template for parcel-cep-plugin, a zero configuration CEP extension builder for Parcel.","archived":false,"fork":false,"pushed_at":"2023-03-04T03:34:22.000Z","size":551,"stargazers_count":13,"open_issues_count":11,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-28T04:34:42.206Z","etag":null,"topics":["adobe","cep","parcel"],"latest_commit_sha":null,"homepage":"","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/fusepilot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-31T19:00:18.000Z","updated_at":"2022-10-09T20:31:45.000Z","dependencies_parsed_at":"2024-11-11T11:34:06.682Z","dependency_job_id":null,"html_url":"https://github.com/fusepilot/parcel-plugin-cep-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fusepilot/parcel-plugin-cep-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusepilot%2Fparcel-plugin-cep-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusepilot%2Fparcel-plugin-cep-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusepilot%2Fparcel-plugin-cep-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusepilot%2Fparcel-plugin-cep-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fusepilot","download_url":"https://codeload.github.com/fusepilot/parcel-plugin-cep-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusepilot%2Fparcel-plugin-cep-starter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262490400,"owners_count":23319284,"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":["adobe","cep","parcel"],"created_at":"2024-11-11T11:31:35.598Z","updated_at":"2025-06-28T20:08:33.616Z","avatar_url":"https://github.com/fusepilot.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Parcel CEP Plugin Starter\n\nStarter template for [parcel-cep-plugin](https://github.com/fusepilot/parcel-plugin-cep), a zero configuration CEP extension builder for [Parcel](https://github.com/parcel-bundler/parcel).\n\n## Quick Start\n\n```sh\ngit clone https://github.com/fusepilot/parcel-plugin-cep-starter.git\ncd parcel-plugin-cep-starter\nyarn \u0026\u0026 yarn start\n```\n\nOpen your CC app of choice, find your extension under `Window` \u003e `Extensions`, and start developing.\n\n## Building\n\nTo create a production build:\n\n```sh\nyarn build\n```\n\n## Packaging\n\nTo create a .zxp for deployment:\n\n```sh\nyarn zxp\n```\n\nA versioned .zxp file will be placed inside `archive`.\n\n## Guides\n\n### Running Scripts\n\n1. Add the function to the `$.global` object in `script/index.jsx.ts`\n2. Call `evalScript` in your React component\n\n```js\n// index.jsx.ts\nimport { id } from \"../shared\";\nfunction alertFromScript(message) {\n  alert(message);\n}\n\n$.global[id] = {\n  alertFromScript,\n};\n\n// Component.jsx\nimport * as React from \"react\";\n\nexport function Component() {\n  const { evalScript } = useExtension();\n\n  return (\n    \u003cbutton onClick={() =\u003e evalScript('alertFromScript(\"Hey!\")')}\u003eAlert\u003c/button\u003e\n  );\n}\n```\n\n### Logging\n\nYou can log events from React in a similar way:\n\n```js\n// Component.jsx\nimport * as React from \"react\";\n\nexport function Component() {\n  const { logMessage } = useLogger();\n\n  return (\n    \u003cbutton onClick={() =\u003e logMessage(\"info\", \"Logged info from panel\")}\u003e\n      Log info\n    \u003c/button\u003e\n  );\n}\n```\n\nThis will append a log message to a file on disk.\n\n### CEP Configuration\n\nSee [fusepilot/parcel-plugin-cep](https://github.com/fusepilot/parcel-plugin-cep)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusepilot%2Fparcel-plugin-cep-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusepilot%2Fparcel-plugin-cep-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusepilot%2Fparcel-plugin-cep-starter/lists"}