Skip to main content
Module

x/lume/core/scripts.ts>default

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class default
import { default } from "https://deno.land/x/lume@v2.1.4/core/scripts.ts";

Script runner to store and run commands or execute functions It can execute the scripts and functions in parallel or sequentially

Constructors

new
default(options?: Options)

Properties

cwd: string

The current working directory

scripts: Map<string, ScriptOrFunction[]>

All registered scripts and functions

Methods

run(...names: ScriptOrFunction[]): Promise<boolean>

Run one or more commands

set(name: string, ...scripts: ScriptOrFunction[]): void

Register one or more scripts under a specific name