Skip to main content
Module

x/lume/core.ts>Scripts

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class Scripts
Re-export
import { Scripts } from "https://deno.land/x/lume@v1.13.2/core.ts";

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

Constructors

new
Scripts(options: Options)

Properties

logger: Logger

The logger to output messages in the terminal

options: ScriptOptions

The default options to execute the scripts

scripts: Map<string, ScriptOrFunction[]>

All registered scripts and functions

Methods

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

Run one or more commands

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

Register one or more scripts under a specific name