Skip to content

Commit d555e53

Browse files
committed
make run server build the binary instead of outputting each run to a tmp file
ensure tailwind cli is v3 for now
1 parent c406b5f commit d555e53

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

cli/htmgo/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"strings"
1919
)
2020

21-
const version = "1.0.5"
21+
const version = "1.0.6"
2222

2323
func main() {
2424
needsSignals := true

cli/htmgo/tasks/css/css.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func downloadTailwindCli() {
7878
log.Fatal(fmt.Sprintf("Unsupported OS/ARCH: %s/%s", os, arch))
7979
}
8080
fileName := fmt.Sprintf(`tailwindcss-%s`, distro)
81-
url := fmt.Sprintf(`https://github.com/tailwindlabs/tailwindcss/releases/latest/download/%s`, fileName)
81+
url := fmt.Sprintf(`https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.16/%s`, fileName)
8282

8383
cmd := fmt.Sprintf(`curl -LO %s`, url)
8484
process.Run(process.NewRawCommand("tailwind-cli-download", cmd, process.ExitOnError))

cli/htmgo/tasks/run/build.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ func MakeBuildable() {
1818
func Build() {
1919
MakeBuildable()
2020

21-
process.RunOrExit(process.NewRawCommand("", "mkdir -p ./dist"))
21+
_ = os.RemoveAll("./dist")
22+
23+
err := os.Mkdir("./dist", 0755)
24+
25+
if err != nil {
26+
fmt.Println("Error creating dist directory", err)
27+
os.Exit(1)
28+
}
2229

2330
if os.Getenv("SKIP_GO_BUILD") != "1" {
2431
process.RunOrExit(process.NewRawCommand("", fmt.Sprintf("go build -tags prod -o ./dist")))

0 commit comments

Comments
 (0)