workloads / main / BeforeRollout
Class: BeforeRollout
Workload for defining an npm script to run before rolling out a new application version.
Example
ts
import { BeforeRollout } from "@monolayer/sdk";
const rollout = new BeforeRollout("before-1", {
script: "db:migrate",
});
export default rollout;
Extends
Constructors
new BeforeRollout()
ts
new BeforeRollout(id, options): BeforeRollout
Parameters
Parameter | Type | Description |
---|---|---|
|
| Unique ID |
|
| ‐ |
Returns
Overrides
Properties
Property | Modifier | Type | Description |
---|---|---|---|
id | readonly | string | Unique ID |
script | public | string | - |