import * as gustwind from "https://deno.land/x/gustwind@v0.34.0/server-deps.ts";
Namespaces
N fs | Helpers for working with the filesystem. |
N path | Utilities for working with OS-specific file paths. |
Functions
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". | |
A synchronous version of "build". | |
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. | |
This function is similar to "build" but it serves the resulting files over HTTP on a localhost address with the specified port. | |
This function transforms a single JavaScript file. It can be used to minify JavaScript, convert TypeScript/JSX to JavaScript, or convert newer JavaScript to older JavaScript. It returns a promise that is either resolved with a "TransformResult" object or rejected with a "TransformFailure" object. | |
A synchronous version of "transform". | |
Copy a file or directory. The directory can have contents. Like | |
Copy a file or directory. The directory can have contents. Like | |
Detect the EOL character for string input. returns null if no newline | |
Ensures that a directory is empty.
Deletes directory contents if the directory is not empty.
If the directory does not exist, it is created.
The directory itself is not deleted.
Requires the | |
Ensures that a directory is empty.
Deletes directory contents if the directory is not empty.
If the directory does not exist, it is created.
The directory itself is not deleted.
Requires the | |
Ensures that the directory exists.
If the directory structure does not exist, it is created. Like mkdir -p.
Requires the | |
Ensures that the directory exists.
If the directory structure does not exist, it is created. Like mkdir -p.
Requires the | |
Ensures that the file exists.
If the file that is requested to be created is in directories that do not
exist.
these directories are created. If the file already exists,
it is NOTMODIFIED.
Requires the | |
Ensures that the file exists.
If the file that is requested to be created is in directories that do not
exist,
these directories are created. If the file already exists,
it is NOT MODIFIED.
Requires the | |
Ensures that the hard link exists. If the directory structure does not exist, it is created. | |
Ensures that the hard link exists. If the directory structure does not exist, it is created. | |
Ensures that the link exists. If the directory structure does not exist, it is created. | |
Ensures that the link exists. If the directory structure does not exist, it is created. | |
Test whether or not the given path exists by checking with the file system. | |
Test whether or not the given path exists by checking with the file system. | |
Expand the glob string from the specified | |
Synchronous version of | |
Format the file to the targeted EOL | |
Moves a file or directory | |
Moves a file or directory synchronously | |
Walks the file tree rooted at root, yielding each file or directory in the tree filtered according to the given options. The files are walked in lexical order, which makes the output deterministic but means that for very large directories walk() can be inefficient. | |
Same as walk() but uses synchronous ops | |
Determines the common path from a set of paths, using an optional separator, which defaults to the OS default separator. | |
Convert a glob string to a regular expression. | |
Test whether the given string is a glob | |
Like join(), but doesn't collapse "**/.." when | |
Like normalize(), but doesn't collapse "**/.." when |
Interfaces
Documentation: https://esbuild.github.io/api/#serve-arguments | |
Documentation: https://esbuild.github.io/api/#serve-return-values | |
A parsed path object generated by path.parse() or consumed by path.format(). |