ikurotime / gitgud

public
Add .air.toml configuration, update .gitignore, and enhance homepage styling
DDavid committed on 2026-06-28 00:07 commit 01161e2
.air.toml +22 −0
+root = "."
+tmp_dir = "tmp"
+
+[build]
+# Regenerate templ files, then build the server.
+cmd = "templ generate && go build -o ./tmp/main ./cmd/server"
+bin = "./tmp/main"
+include_ext = ["go", "templ", "html", "css", "js"]
+# Generated templ files are written by the build step itself — don't let them
+# trigger another rebuild (avoids an infinite loop).
+exclude_regex = ["_templ.go$"]
+exclude_dir = ["tmp", "data", "docs", ".git", ".claude"]
+delay = 200
+stop_on_error = true
+send_interrupt = true
+kill_delay = 2000
+
+[log]
+time = true
+
+[misc]
+clean_on_exit = true
.gitignore +2 −1
.env*
docs
-app.db+app.db
+tmp/
internal/interface/web/templates/home.templ +1 −1
package templates
templ Home() {
@Layout("gitgud") {
- <div>gitgud cool homepage</div>
+ <div class="text-3xl">gitgud cool homepage</div>
}
}
internal/interface/web/templates/home_templ.go +1 −1
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
package templates
//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
func Home() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
}()
}
ctx = templ.InitializeContext(ctx)
templ_7745c5c3_Var1 := templ.GetChildren(ctx)
if templ_7745c5c3_Var1 == nil {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Var2 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
}()
}
ctx = templ.InitializeContext(ctx)
- templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<div>gitgud cool homepage</div>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<div class=\"text-3xl\">gitgud cool homepage</div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return nil
})
templ_7745c5c3_Err = Layout("gitgud").Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return nil
})
}
var _ = templruntime.GeneratedTemplate