Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/udibo_react_app/build.ts>BuildOptions

A React Framework for Deno
Go to Latest
interface BuildOptions
import { type BuildOptions } from "https://deno.land/x/udibo_react_app@0.1.1/build.ts";

Properties

workingDirectory: string

The absolute path to the working directory for your application.

entryPoint: string

The client entry point for your application relative to the workingDirectory.

routesUrls: string[]

Urls for all routes directories that your app uses. Each routes directory will have 2 files generated in them.

  • _main.ts: Contains the oak router for the routes.
  • _main.tsx: Contains the react router routes for controlling navigation in the app. Your server entrypoint should import and use both of the generated files for each routes directory. Your client entry point should only import the react router routes. In most cases, you will only need a single routesUrl.
publicUrl: string

The application will serve all files from this directory. The build for your client entry point will be stored in public/build. Test builds will be stored in public/test-build.

importMapUrl: string

File url for your import map.

optional
esbuildPlugins: esbuild.Plugin[]

ESBuild plugins to use when building your application. These plugins will be added after the deno plugin.

optional
preBuild: (() => Promise<void>) | (() => void)

Called before building the application. This can be used to add additional steps before the build starts.

optional
postBuild: (() => Promise<void>) | (() => void)

Called after building the application. This can be used to add additional steps after the build is completed.