Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as mod from "https://garn.io/ts/v0.0.20/environment.ts";

§Variables

emptyEnvironment

The empty environment - this Environment has nothing installed in it. It can be easily extended using withDevTools.

isEnvironment
packageToEnvironment
wrapSandboxedScript

Add the setup of an Environment to a given script for the sandboxed case. This should be used for Packages and Checks.

wrapUnsandboxedScript

Add the setup of an Environment to a given script for the unsandboxed case. This should be used for Executables and garn enter.

§Functions

addToSetup

Appends the given bash snippet to the setup of the Environment. The setup will be executed when running things in an environment.

build

Creates a new Package, which will be built using the given shell script. It's run in the emptyEnvironment.

check

Creates a new shell script Check, run in the emptyEnvironment.

mkEnvironment

A low-level helper to create new Environments.

shell

Creates a new shell script Executable, run in the emptyEnvironment.

§Type Aliases

Environment

Environments define what files and tools are available to Executables, Checks and development shells.