Skip to content

workloads / main / Bootstrap

Class: Bootstrap

Workload for defining bootstrap an npm script to run when rolling out a fresh application.

Example

ts
import { Bootstrap } from "@monolayer/sdk";

const bootstrap = new Bootstrap("bootstrap", {
  script: "db:create",
});

export default bootstrap;

Extends

Constructors

new Bootstrap()

ts
new Bootstrap(id, options): Bootstrap

Parameters

ParameterTypeDescription

id

string

Unique ID

options

LifecycleWorkloadOptions

Returns

Bootstrap

Overrides

LifecycleWorkload.constructor

Properties

PropertyModifierTypeDescription
idreadonlystringUnique ID
scriptpublicstring-