x/aleph/server/helpers.ts

The Full-stack Framework in Deno.
Very Popular
Go to Latest
import * as mod from "https://deno.land/x/aleph@1.0.0-beta.1/server/helpers.ts?code";

Functions

Get the deployment ID.

get files in the directory.

Get the import maps.

Get the jsx config.

Get the UnoCSS generator, return null if the presets are empty.

Stores and returns the fn output in the globalThis object

Stores and returns the fn output in the globalThis object synchronously.

Load the import maps from the json file.

Load the JSX config base the given import maps and the existing deno config.

restore the remote url from local path. e.g. /-/esm.sh/react@17.0.2 -> https://esm.sh/react@17.0.2

fix remote url to local path. e.g. https://esm.sh/react@17.0.2?dev -> /-/esm.sh/react@17.0.2?dev

Watch the directory and its subdirectories.