From 2c15c6f84093035e7f7cccc01442ec1243204018 Mon Sep 17 00:00:00 2001 From: Matthew Stobbs Date: Thu, 14 Mar 2024 12:21:07 -0600 Subject: [PATCH] start setup for move to templ --- .air.toml | 10 +++++----- {assets/src => css}/style.css | 0 assets/package-lock.json => package-lock.json | 0 assets/package.json => package.json | 0 assets/tailwind.config.js => tailwind.config.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename {assets/src => css}/style.css (100%) rename assets/package-lock.json => package-lock.json (100%) rename assets/package.json => package.json (100%) rename assets/tailwind.config.js => tailwind.config.js (93%) diff --git a/.air.toml b/.air.toml index 81a9bf9..15bebd4 100644 --- a/.air.toml +++ b/.air.toml @@ -5,23 +5,23 @@ tmp_dir = "tmp" [build] args_bin = [] bin = "./tmp/main" + pre_cmd = ["templ generate", "npx tailwindcss -i css/style.css -o public/css/style.css"] cmd = "go build -o ./tmp/main ." delay = 1000 - exclude_dir = ["tmp", "vendor", "testdata", "assets/node_modules"] + exclude_dir = ["tmp", "vendor", "testdata", "node_modules"] exclude_file = [] - exclude_regex = ["_test.go"] + exclude_regex = ["_test.go", ".*_templ.go"] exclude_unchanged = false follow_symlink = false full_bin = "" include_dir = [] - include_ext = ["go", "tpl", "tmpl", "html", "gohtml", "css"] - include_file = [] + include_ext = ["go", "css", "templ"] + include_file = ["tailwind.config.js"] kill_delay = "0s" log = "build-errors.log" poll = false poll_interval = 0 post_cmd = [] - pre_cmd = [] rerun = false rerun_delay = 500 send_interrupt = false diff --git a/assets/src/style.css b/css/style.css similarity index 100% rename from assets/src/style.css rename to css/style.css diff --git a/assets/package-lock.json b/package-lock.json similarity index 100% rename from assets/package-lock.json rename to package-lock.json diff --git a/assets/package.json b/package.json similarity index 100% rename from assets/package.json rename to package.json diff --git a/assets/tailwind.config.js b/tailwind.config.js similarity index 93% rename from assets/tailwind.config.js rename to tailwind.config.js index 065c811..c4acaf7 100644 --- a/assets/tailwind.config.js +++ b/tailwind.config.js @@ -1,6 +1,6 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: ["../view/**/*.gohtml"], + content: ["view/**/*.gohtml"], theme: { extend: { listStyleImage: {