mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2026-03-01 16:48:22 +00:00
Compare commits
No commits in common. "0006f2854e3277757a68cf41590b73dee9dcdf26" and "df3d60940b99e2ec16e4c2e9f5503000163f6ba8" have entirely different histories.
0006f2854e
...
df3d60940b
1 changed files with 2 additions and 5 deletions
|
|
@ -1,8 +1,5 @@
|
||||||
# SwiftTailwind
|
# SwiftTailwind
|
||||||
|
|
||||||
[](https://swiftpackageindex.com/laosb/SwiftTailwind)
|
|
||||||
[](https://swiftpackageindex.com/laosb/SwiftTailwind)
|
|
||||||
|
|
||||||
Use Tailwind CSS in your Swift projects, seemlessly integrated as a Build Tool Plugin.
|
Use Tailwind CSS in your Swift projects, seemlessly integrated as a Build Tool Plugin.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
@ -11,7 +8,7 @@ Add this package to your Swift project as a dependency using the Swift Package M
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://github.com/laosb/SwiftTailwind.git", from: "1.1.1+tw.4.1.18"),
|
.package(url: "https://github.com/laosb/SwiftTailwind.git", from: "1.0.0+tw.4.1.12"),
|
||||||
],
|
],
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -52,7 +49,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.
|
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 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.
|
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.
|
||||||
|
|
||||||
Any contributions to automate the artifact generation are welcome!
|
Any contributions to automate the artifact generation are welcome!
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue