Added fresh to project to auto-rebuild changes

This commit is contained in:
Gregory Ballantine 2022-11-25 14:00:28 -05:00
parent 8c7d2fd026
commit afd6ffc3f1
3 changed files with 28 additions and 1 deletions

21
.fresh.yaml Normal file
View File

@ -0,0 +1,21 @@
version: "1"
root: .
main_path: ""
tmp_path: ./tmp
build_name: runner-build
build_args: ""
run_args: ""
build_log: runner-build-errors.log
valid_ext: .go, .tpl, .tmpl, .html
no_rebuild_ext: .tpl, .tmpl, .html
ignore: assets/**/*, assets, tmp/*, public/**/*, public, node_modules/**/*, node_modules
build_delay: "600"
colors: true
log_color_main: cyan
log_color_build: yellow
log_color_runner: green
log_color_watcher: magenta
log_color_app: ""
delve: false
delve_args: ""
debug: false

5
.gitignore vendored
View File

@ -16,7 +16,10 @@
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
vendor/
# Temporary directory created by fresh
tmp/
# Go workspace file
go.work

View File

@ -1,6 +1,7 @@
package main
import (
"fmt"
"net/http"
"github.com/flamego/flamego"
@ -28,5 +29,7 @@ func main() {
t.HTML(http.StatusOK, "index")
})
fmt.Println("test!!?")
f.Run()
}