Skip to content

Commit

Permalink
[workflow] Support Tailwind CSS job.
Browse files Browse the repository at this point in the history
  • Loading branch information
jellyterra committed Sep 25, 2024
1 parent 1b1f621 commit 37c6cf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/builtin/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ package builtin

import "embed"

//go:embed tsc/*.tmpl
//go:embed */*.tmpl
var Builders embed.FS
6 changes: 6 additions & 0 deletions workflow/builtin/tailwindcss/v1.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{ if eq .title nil }}{{ panic "missing property: title" }}{{ end }}
{{ if eq .input nil }}{{ panic "missing property: input" }}{{ end }}
{{ if eq .output nil }}{{ panic "missing property: output" }}{{ end }}
{{ job.Set "title" .title }}
{{ job.Set "executable" "tailwindcss" }}
{{ (job.Get "args").Push "--input" (path.Join root .input) "--output" (path.Join root .output) }}

0 comments on commit 37c6cf3

Please sign in to comment.