|
3 | 3 | import PackageDescription
|
4 | 4 |
|
5 | 5 | let package = Package(
|
6 |
| - name: "template", |
| 6 | + name: "swift-plugin-tailwindcss", |
7 | 7 | products: [
|
8 |
| - .plugin( |
9 |
| - name: "template", |
10 |
| - targets: [ |
11 |
| - "TemplatePlugin" |
12 |
| - ] |
13 |
| - ) |
| 8 | + .executable(name: "tailwindcss", targets: ["TailwindExecutable"]), |
| 9 | + .plugin(name: "TailwindPlugin", targets: ["TailwindPlugin"]) |
| 10 | + ], |
| 11 | + dependencies: [ |
| 12 | + .package(url: "https://github.com/21-DOT-DEV/swift-artifact-parser", exact: "0.0.1") |
14 | 13 | ],
|
15 |
| - dependencies: [], |
16 | 14 | targets: [
|
| 15 | + .executableTarget( |
| 16 | + name: "TailwindExecutable", |
| 17 | + dependencies: [ |
| 18 | + .product(name: "ArtifactParser", package: "swift-artifact-parser") |
| 19 | + ] |
| 20 | + ), |
17 | 21 | .plugin(
|
18 |
| - name: "TemplatePlugin", |
| 22 | + name: "TailwindPlugin", |
19 | 23 | capability: .command(
|
20 | 24 | intent: .custom(
|
21 |
| - verb: "template", |
22 |
| - description: "Execute commands defined by template." |
| 25 | + verb: "tailwindcss", |
| 26 | + description: "Run TailwindCSS CLI commands." |
23 | 27 | )
|
24 | 28 | ),
|
25 |
| - dependencies: ["template"] |
| 29 | + dependencies: ["tailwindcss"] |
26 | 30 | ),
|
27 |
| -// .binaryTarget(name: "template", path: "template.artifactbundle.zip"), |
| 31 | +// .binaryTarget(name: "tailwindcss", path: "tailwindcss.artifactbundle.zip"), |
28 | 32 | .binaryTarget(
|
29 |
| - name: "template", |
30 |
| - url: "https://github.com/GigaBitcoin/template-plugin/releases/download/0.0.1/template.artifactbundle.zip", |
31 |
| - checksum: "42e1e7a4f7d7586ec6d13b3e03cce5612ac237244cc3cb1e6de7c49416d04520" |
| 33 | + name: "tailwindcss", |
| 34 | + url: "https://github.com/21-DOT-DEV/swift-plugin-tailwindcss/releases/download/1.0.00/tailwindcss.artifactbundle.zip", |
| 35 | + checksum: "0fb225345a0c2a182b187f4b58d48d81f6d576e79020514046721e317fdaf74a" |
32 | 36 | ),
|
33 | 37 | ],
|
34 | 38 | swiftLanguageVersions: [.v5]
|
|
0 commit comments