feat: add build.outDir option (#1797)

This commit is contained in:
Marvin Hagemeister
2023-09-20 10:40:09 +02:00
committed by GitHub
parent ff6ae7eb7f
commit 3fd8fe89d3
30 changed files with 846 additions and 448 deletions
+6 -19
View File
@@ -24,6 +24,7 @@ export {
export type {
AppContext,
AppProps,
DenoConfig,
ErrorHandler,
ErrorHandlerContext,
ErrorPageProps,
@@ -81,24 +82,6 @@ export interface Manifest {
baseUrl: string;
}
export interface DenoConfig {
imports?: Record<string, string>;
importMap?: string;
tasks?: Record<string, string>;
lint?: {
rules: { tags?: string[] };
exclude?: string[];
};
fmt?: {
exclude?: string[];
};
exclude?: string[];
compilerOptions?: {
jsx?: string;
jsxImportSource?: string;
};
}
export { ServerContext };
export async function createHandler(
@@ -112,6 +95,10 @@ export async function createHandler(
}
export async function start(routes: Manifest, opts: StartOptions = {}) {
const ctx = await ServerContext.fromManifest(routes, opts);
const ctx = await ServerContext.fromManifest(routes, {
...opts,
skipSnapshot: false,
dev: false,
});
await startFromContext(ctx, opts);
}