跳到內容

Options

本頁內容尚未翻譯。

Defined in: index.ts:52

readonly directory: string;

Defined in: index.ts:53


readonly name?: string;

Defined in: index.ts:60

Defaults to the target directory’s basename, prefixed with graft-plugin- for the plugin template.


readonly packageManager?: string;

Defined in: index.ts:67

Exact SemVer, optionally with a prerelease and a supported Corepack SHA hash.


readonly plugins?: readonly string[];

Defined in: index.ts:65

Plugin packages to depend on and load, each name or name@range, named in full. pluginSpec turns a short name into a package name.


readonly template?: "plugin" | "app" | "minimal";

Defined in: index.ts:55

Defaults to app.


readonly versions?: {
cli?: string;
effect?: string;
graft?: string;
loader?: string;
};

Defined in: index.ts:74

Graft, its loader and its CLI default to this package’s own version, since every Graft package is released with the same one. The CLI expects the application to provide Graft and the loader, so plugins share one copy of each. Override these for local development.

readonly cli?: string;
readonly effect?: string;
readonly graft?: string;
readonly loader?: string;