-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: allowing to specify the version of tailwind to be used.
As requested in one of our issues this change allows to specify the version of TailwindCSS to download.
- Loading branch information
1 parent
e9a1e60
commit 79d1f8b
Showing
6 changed files
with
87 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
# Tailo | ||
|
||
Tailo is a Go wrapper for the common operations with the TailwindCSS binary. It is intended to automate the process of installing the TailwindCSS binary, running it, and cleaning up the generated files. | ||
Tailo is a Go wrapper for the common operations with the TailwindCSS binary. It is intended to automate the process of installing the TailwindCSS binary, running it, and cleaning up the generated files. | ||
|
||
## Setup Command | ||
The setup command is an easy way to invoke tailo from your application without creating a dependency on this package. | ||
|
||
```sh | ||
go run github.com/paganotoni/tailo/cmd/setup@latest // Using Latest Tailwind | ||
|
||
// Or Using a specific version | ||
go run github.com/paganotoni/tailo/cmd/setup@latest -version=v3.4.6 | ||
``` | ||
|
||
## Build Command | ||
Like the Setup command the Build Command allows to specify the version of Tailwind to be used. | ||
|
||
```sh | ||
go run ./cmd/build -version=v3.4.6 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
package main | ||
|
||
import "github.com/paganotoni/tailo" | ||
import ( | ||
"flag" | ||
|
||
"github.com/paganotoni/tailo" | ||
) | ||
|
||
var ( | ||
input string | ||
output string | ||
config string | ||
binary string | ||
version string | ||
) | ||
|
||
func init() { | ||
flag.StringVar(&version, "version", "", "The TailwindCSS version to use, defaults to empty which means latest.") | ||
} | ||
|
||
func main() { | ||
//TODO: allow flags? | ||
tailo.Setup() | ||
flag.Parse() | ||
|
||
tailo.Setup( | ||
tailo.UseVersion(version), | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters