@raggle/plugins
v0.1.0
Published
Plugin API for Raggle project actions
Readme
@raggle/plugins
Small runtime and TypeScript API for Raggle project action plugins.
import { defineProjectActions } from "@raggle/plugins";
export const projectActions = defineProjectActions((context) => [
{
id: "plugin:example",
title: `Example for ${context.name}`,
section: "custom",
onAction: async () => {
console.log(context.folderPath);
},
},
]);
export default projectActions;External plugins should publish compiled JavaScript. TSX source must be built before Raggle can import it at runtime.
