deno.land / x / netzo@0.5.16 / mod.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { type FreshConfig } from "$fresh/server.ts";import type { AuthState } from "./plugins/auth/plugin.ts";import type { CronState } from "./plugins/cron/plugin.ts";import type { EnvironmentsState } from "./plugins/environments/plugin.ts";import type { RestState } from "./plugins/rest/plugin.ts";import { proxyConsole } from "./plugins/utils.ts";
// deno-lint-ignore no-global-assignconsole = proxyConsole( `Comparison using the "!==" operator here is always true`, `Not implemented: ClientRequest.options.createConnection`, `Use of deprecated "`, // Deno 2.0 warnings (see https://github.com/denoland/fresh/issues/2276)); // WORKAROUND: silence selected messages by substrings
export type NetzoConfig = FreshConfig;
export type NetzoState = { denoJson?: Record<string, string>; auth?: AuthState; cron?: CronState; database?: RestState; environments?: EnvironmentsState; [k: string]: unknown;};
/** * Helper function to define a Netzo configuration object. * * Netzo is a Deno Fresh-based framework for building full-stack web apps * faster with less code via an opinionated set of plugins and conventions. * * @example import { defineConfig } from "netzo/mod.ts" * export default defineConfig({...}) * * @param {NetzoConfig} config - configuration options for the application * @returns {object} - an application instance */export function defineConfig(config: NetzoConfig) { return config;}
netzo

Version Info

Tagged at
a week ago