From ddf4b9df810f7b2947b4805dc14020bb585034dc Mon Sep 17 00:00:00 2001 From: laosb Date: Sun, 8 Feb 2026 20:40:58 +0800 Subject: [PATCH 1/2] docs: Update README with badges and version info Update the package dependency version from 1.0.0+tw.4.1.12 to 1.1.1+tw.4.1.18 and add Swift Package Index badges. Clarify that the artifact bundle is now built using a custom Swift CLI tool with GitHub Actions automation instead of a shell script. --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 81577ca..654219c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # SwiftTailwind +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Flaosb%2FSwiftTailwind%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/laosb/SwiftTailwind) +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Flaosb%2FSwiftTailwind%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/laosb/SwiftTailwind) + Use Tailwind CSS in your Swift projects, seemlessly integrated as a Build Tool Plugin. ## Usage @@ -8,7 +11,7 @@ Add this package to your Swift project as a dependency using the Swift Package M ```swift dependencies: [ - .package(url: "https://github.com/laosb/SwiftTailwind.git", from: "1.0.0+tw.4.1.12"), + .package(url: "https://github.com/laosb/SwiftTailwind.git", from: "1.1.1+tw.4.1.18"), ], ``` @@ -49,7 +52,7 @@ let cssFileURL = Bundle.module A binary artifact bundle will be downloaded from this repo's GitHub Releases. It contains the standalone version of Tailwind CSS CLI, which is used to process your Tailwind CSS files. This allows you to use Tailwind CSS without needing to install Node.js or npm in your Swift project. -It is built using [`Scripts/buildArtifactBundle.sh`](Scripts/buildArtifactBundle.sh), which pulls the specified version of Tailwind CSS CLI from their GitHub Releases and packages it into a Swift Package compatible format. It is then manually uploaded to this repository's GitHub Releases. +It is built using a custom Swift CLI at [`Sources/TailwindCSSCLIArtifactBundler`](Sources/TailwindCSSCLIArtifactBundler), which pulls the specified version of Tailwind CSS CLI from their GitHub Releases and packages it into a Swift Package compatible format. When a new Tailwind CSS version is release upstream, a GitHub Actions [workflow](.github/workflows/release-tailwindcss-cli.yml) is usually triggered manually with the new version number to create a new Tailwind CSS CLI release in this repo. After that, the [`Package.swift`](Package.swift) file should be updated to point to the new CLI version, and a new SwiftTailwind release should be created. Any contributions to automate the artifact generation are welcome! From 0006f2854e3277757a68cf41590b73dee9dcdf26 Mon Sep 17 00:00:00 2001 From: laosb Date: Sun, 8 Feb 2026 20:43:44 +0800 Subject: [PATCH 2/2] docs: Fix badge type parameter in README The second badge was incorrectly using `type=swift-versions` instead of `type=platforms`. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 654219c..362048c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # SwiftTailwind [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Flaosb%2FSwiftTailwind%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/laosb/SwiftTailwind) -[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Flaosb%2FSwiftTailwind%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/laosb/SwiftTailwind) +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Flaosb%2FSwiftTailwind%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/laosb/SwiftTailwind) Use Tailwind CSS in your Swift projects, seemlessly integrated as a Build Tool Plugin.