tailo

package module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 10 Imported by: 7

README

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.

Documentation

Overview

tailo is a wrapper for the Tailwind CSS CLI that facilitates the download and of the CLI and the config file.

tailo is a wrapper for the Tailwind CSS CLI that facilitates the download and of the CLI and the config file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(options ...Option)

Build runs the Tailwind CSS CLI binary to build the CSS file and generate compiled CSS it expects to find the options in the config file.

func Setup

func Setup() error

Setup downloads the Tailwind CSS CLI binary for the given operating system and architecture. It makes the binary executable and places it in the bin/ directory.

func Watch

func Watch(options ...Option)

func WatcherFn added in v1.0.3

func WatcherFn(options ...Option) func()

WatcherFn returns a runner function based on the given options.

Types

type Option

type Option func()

func UseBinaryPath

func UseBinaryPath(path string) Option

UseBinaryPath sets the path to the TailwindCSS CLI binary otherwise it defaults to "bin/tailwindcss".

func UseConfigPath

func UseConfigPath(path string) Option

UseConfigPath sets the path to the TailwindCSS configuration file otherwise it defaults to "config/tailwind.config.js".

func UseInputPath

func UseInputPath(path string) Option

UseInputPath sets the path to the input file, the one with @apply rules otherwise it defaults to "web/assets/application.css".

func UseOutputPath

func UseOutputPath(path string) Option

UseOutputPath sets the path to the output file, the one with compiled CSS otherwise it defaults to "web/public/application.css".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL