start setup for move to templ

This commit is contained in:
Matthew Stobbs 2024-03-14 12:21:07 -06:00
parent 6e0198de35
commit 2c15c6f840
5 changed files with 6 additions and 6 deletions

View File

@ -5,23 +5,23 @@ tmp_dir = "tmp"
[build] [build]
args_bin = [] args_bin = []
bin = "./tmp/main" bin = "./tmp/main"
pre_cmd = ["templ generate", "npx tailwindcss -i css/style.css -o public/css/style.css"]
cmd = "go build -o ./tmp/main ." cmd = "go build -o ./tmp/main ."
delay = 1000 delay = 1000
exclude_dir = ["tmp", "vendor", "testdata", "assets/node_modules"] exclude_dir = ["tmp", "vendor", "testdata", "node_modules"]
exclude_file = [] exclude_file = []
exclude_regex = ["_test.go"] exclude_regex = ["_test.go", ".*_templ.go"]
exclude_unchanged = false exclude_unchanged = false
follow_symlink = false follow_symlink = false
full_bin = "" full_bin = ""
include_dir = [] include_dir = []
include_ext = ["go", "tpl", "tmpl", "html", "gohtml", "css"] include_ext = ["go", "css", "templ"]
include_file = [] include_file = ["tailwind.config.js"]
kill_delay = "0s" kill_delay = "0s"
log = "build-errors.log" log = "build-errors.log"
poll = false poll = false
poll_interval = 0 poll_interval = 0
post_cmd = [] post_cmd = []
pre_cmd = []
rerun = false rerun = false
rerun_delay = 500 rerun_delay = 500
send_interrupt = false send_interrupt = false

View File

@ -1,6 +1,6 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { module.exports = {
content: ["../view/**/*.gohtml"], content: ["view/**/*.gohtml"],
theme: { theme: {
extend: { extend: {
listStyleImage: { listStyleImage: {