Options
本頁內容尚未翻譯。
Defined in: index.ts:52
Properties
Section titled “Properties”directory
Section titled “directory”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.
packageManager?
Section titled “packageManager?”readonly packageManager?: string;Defined in: index.ts:67
Exact SemVer, optionally with a prerelease and a supported Corepack SHA hash.
plugins?
Section titled “plugins?”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.
template?
Section titled “template?”readonly template?: "plugin" | "app" | "minimal";Defined in: index.ts:55
Defaults to app.
versions?
Section titled “versions?”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;effect?
Section titled “effect?”readonly effect?: string;graft?
Section titled “graft?”readonly graft?: string;loader?
Section titled “loader?”readonly loader?: string;