feat(FN-3907): add fusion-plugin-cli-printing-press plugin scaffold
Restores and stabilizes a new `fusion-plugin-cli-printing-press` plugin scaffold, including the plugin manifest, TypeScript configuration, source entry point, and test suite, with vitest aliases added in a follow-up fix. Fusion-Task-Id: FN-3907
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { validatePluginManifest } from "@fusion/core";
|
||||
import plugin from "../index.js";
|
||||
import manifestJson from "../../manifest.json" with { type: "json" };
|
||||
|
||||
describe("cli-printing-press plugin stub (FN-3762)", () => {
|
||||
it("registers with the correct manifest id", () => {
|
||||
expect(plugin.manifest.id).toBe("fusion-plugin-cli-printing-press");
|
||||
});
|
||||
|
||||
it("passes manifest validation", () => {
|
||||
const validation = validatePluginManifest(manifestJson);
|
||||
expect(validation.valid).toBe(true);
|
||||
});
|
||||
|
||||
it("has no routes or dashboardViews in the stub", () => {
|
||||
expect(plugin.routes).toBeUndefined();
|
||||
expect(plugin.dashboardViews).toBeUndefined();
|
||||
});
|
||||
});
|
||||
14
plugins/fusion-plugin-cli-printing-press/src/index.ts
Normal file
14
plugins/fusion-plugin-cli-printing-press/src/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { definePlugin } from "@fusion/plugin-sdk";
|
||||
|
||||
const plugin = definePlugin({
|
||||
manifest: {
|
||||
id: "fusion-plugin-cli-printing-press",
|
||||
name: "CLI Printing Press",
|
||||
version: "0.1.0",
|
||||
description: "Generate and manage CLIs for external services using cli-printing-press",
|
||||
},
|
||||
state: "installed",
|
||||
hooks: {},
|
||||
});
|
||||
|
||||
export default plugin;
|
||||
Reference in New Issue
Block a user