import * as aleph from "https://deno.land/x/aleph@1.0.0-beta.23/server/deps.ts";
Functions
f blue | Set text color to blue. |
f bold | Make the text bold. |
f btoa | CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation |
Concatenate the given arrays into a new Uint8Array. | |
f cyan | Set text color to cyan. |
f dim | The text emits only a small amount of light. |
Ensures that the directory exists.
If the directory structure does not exist, it is created. Like mkdir -p.
Requires the | |
Pretty-prints an analysis of the metafile JSON to a string. This is just for convenience to be able to match esbuild's pretty-printing exactly. If you want to customize it, you can just inspect the data in the metafile yourself. | |
A synchronous version of "analyzeMetafile". | |
This function invokes the "esbuild" command-line tool for you. It returns a promise that either resolves with a "BuildResult" object or rejects with a "BuildFailure" object. | |
A synchronous version of "build". | |
This is the advanced long-running form of "build" that supports additional features such as watch mode and a local development server. | |
Converts log messages to formatted message strings suitable for printing in the terminal. This allows you to reuse the built-in behavior of esbuild's log message formatter. This is a batch-oriented API for efficiency. | |
A synchronous version of "formatMessages". | |
This configures the browser-based version of esbuild. It is necessary to call this first and wait for the returned promise to be resolved before making other API calls when using esbuild in the browser. | |
A synchronous version of "transform". | |
Convert a glob string to a regular expression. | |
Set text color to green. | |
initialize the compiler wasm module. | |
f mitt | Mitt: Tiny (~200b) functional event emitter / pubsub. |
Parse the deps of the modules. | |
f red | Set text color to red. |
Serves HTTP requests with the given handler. | |
Serves HTTPS requests with the given handler. | |
Transforms the JSX/TS module into a JS module. | |
Compiles a CSS file, including optionally minifying and lowering syntax to the given targets. A source map may also be generated, but this is not enabled by default. | |
Set text color to yellow. |
Interfaces
Documentation: https://esbuild.github.io/api/#metafile | |
Documentation: https://esbuild.github.io/plugins/#on-load-arguments | |
Documentation: https://esbuild.github.io/plugins/#on-load-options | |
Documentation: https://esbuild.github.io/plugins/#on-load-results | |
Documentation: https://esbuild.github.io/plugins/#on-resolve-arguments | |
Documentation: https://esbuild.github.io/plugins/#on-resolve-options | |
Documentation: https://esbuild.github.io/plugins/#on-resolve-results | |
Documentation: https://esbuild.github.io/plugins/#resolve-options | |
Documentation: https://esbuild.github.io/plugins/#resolve-results | |
Documentation: https://esbuild.github.io/api/#serve-arguments | |
Documentation: https://esbuild.github.io/api/#serve-return-values | |