first commit
This commit is contained in:
32
packages/plugins/marketplace-test/src/index.ts
Normal file
32
packages/plugins/marketplace-test/src/index.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Marketplace Test Plugin for EmDash CMS
|
||||
*
|
||||
* A self-contained plugin designed for end-to-end testing of the marketplace
|
||||
* publish → audit → approval pipeline. Includes:
|
||||
* - Backend sandbox code (content:beforeSave hook)
|
||||
* - Icon and screenshot assets
|
||||
* - Full manifest with capabilities
|
||||
*
|
||||
* Usage:
|
||||
* emdash plugin bundle --dir packages/plugins/marketplace-test
|
||||
* emdash plugin publish dist/marketplace-test-0.1.0.tar.gz --registry <url>
|
||||
*/
|
||||
|
||||
import type { PluginDescriptor } from "emdash";
|
||||
|
||||
/**
|
||||
* Plugin factory -- returns a descriptor for the integration.
|
||||
*/
|
||||
export function marketplaceTestPlugin(): PluginDescriptor {
|
||||
return {
|
||||
id: "marketplace-test",
|
||||
version: "0.1.0",
|
||||
format: "standard",
|
||||
entrypoint: "@emdashcms/plugin-marketplace-test/sandbox",
|
||||
capabilities: ["read:content", "write:content"],
|
||||
allowedHosts: [],
|
||||
storage: {
|
||||
events: { indexes: ["timestamp", "type"] },
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user