-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
constant.ts
34 lines (33 loc) · 1.42 KB
/
constant.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
// Copyright 2020 - 2021 the Fastro author. All rights reserved. MIT license.
export const DENO_VERSION = "1.7.5";
export const FASTRO_VERSION = "0.30.47";
export const MODULE_DIR = "module";
export const CONTROLLER_FILE = ".controller.ts";
export const PAGE_FILE = ".page.tsx";
export const STATIC_DIR = "public";
export const TEMPLATE_FILE = ".template.html";
export const TEMPLATE_DIR = "module";
export const MIDDLEWARE_DIR = "middleware";
export const MAX_MEMORY = 1024 * 1024;
export const VSCODE_DIR = ".vscode";
export const TIMEOUT = 12 * 1000;
export const RUNNING_TEXT = "HTTP webserver running. Access it at";
export const HOSTNAME = "0.0.0.0";
export const PORT = 3000;
export const NO_CONFIG = "Start with no config";
export const NO_SERVICE = "Start with no service";
export const NO_MIDDLEWARE = "Start with no middleware";
export const NO_TEMPLATE = "Start with no html template";
export const NO_STATIC_FILE = "Start with no static file";
export const NO_DEPS = "Start with no deps";
export const NOT_FOUND = "not found";
export const SRVC_TYPE_PAGE = "page";
export const SRVC_TYPE_SERVICE = "service";
export const TEST_ENV = "test";
export const DENO_ENV = "DENO_ENV";
export const DEV_ENV = "development";
export const CONTENT_TYPE = "content-type";
export const CONTAINER = "container.ts";
export const APPS =
"https://raw.githubusercontent.com/fastrojs/app/main/app.yml";
export const REACT_ROOT = `<div id="root"></div>`;