-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
44 lines (39 loc) · 1.04 KB
/
types.go
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
42
43
44
package luna
import (
"text/template"
"github.com/Djancyp/luna/pkg"
"github.com/labstack/echo/v4"
"github.com/rs/zerolog"
)
type PropsResponse struct {
Path string `json:"path"`
}
type Engine struct {
Logger zerolog.Logger
Server *echo.Echo
Config Config
Cache []Cache
HotReload *HotReload
}
type Cache struct {
ID string
Path string
HTML *template.Template
Body string
CSS string
JS string
}
type Config struct {
ENV string `default:"development"`
RootPath string `default:"frontend/"`
ServerEntryPoint string `default:"frontend/src/entry-client.tsx"`
ClientEntryPoint string `default:"frontend/src/entry-server.tsx"`
FaviconPath string `default:"frontend/src/assets/favicon.ico"`
AssetsPath string `default:"frontend/src/assets/"`
PublicPath string `default:"public/"`
TailwindCSS bool `default:"false"`
Head pkg.MainHead
HotReloadServerPort int `default:"8080"`
Store pkg.Store
Routes []pkg.ReactRoute
}