Documentation
¶
Index ¶
- func IsRuntimeForProject(ctx context.Context, fs afero.Fs, dirPath string, sdkConfig hooks.SDKCLIConfig) bool
- type Deno
- func (d *Deno) HooksJSONTemplate() []byte
- func (d *Deno) IgnoreDirectories() []string
- func (d *Deno) InstallProjectDependencies(ctx context.Context, dirPath string, hookExecutor hooks.HookExecutor, ...) (string, error)
- func (d *Deno) Name() string
- func (d *Deno) PreparePackage(ctx context.Context, sdkConfig hooks.SDKCLIConfig, ...) error
- func (d *Deno) SetVersion(version string)
- func (d *Deno) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRuntimeForProject ¶
func IsRuntimeForProject(ctx context.Context, fs afero.Fs, dirPath string, sdkConfig hooks.SDKCLIConfig) bool
IsRuntimeForProject returns true if dirPath is a Deno project
Types ¶
type Deno ¶
type Deno struct {
// contains filtered or unexported fields
}
Deno runtime type
func (*Deno) HooksJSONTemplate ¶
HooksJSONTemplate returns the default hooks.json template
func (*Deno) IgnoreDirectories ¶
IgnoreDirectories is a list of directories to ignore when packaging the runtime for deployment.
func (*Deno) InstallProjectDependencies ¶
func (d *Deno) InstallProjectDependencies( ctx context.Context, dirPath string, hookExecutor hooks.HookExecutor, ios iostreams.IOStreamer, fs afero.Fs, os types.Os, ) ( string, error, )
InstallProjectDependencies for the Deno project
func (*Deno) PreparePackage ¶
func (d *Deno) PreparePackage(ctx context.Context, sdkConfig hooks.SDKCLIConfig, hookExecutor hooks.HookExecutor, opts types.PreparePackageOpts) error
PreparePackage will prepare and copy the app in srcDirPath to dstDirPath as a release-ready bundle.
func (*Deno) SetVersion ¶
SetVersion sets the Version value
Click to show internal directories.
Click to hide internal directories.