{"id":13667452,"url":"https://github.com/Hejki/SassPublishPlugin","last_synced_at":"2025-04-26T15:32:45.150Z","repository":{"id":66547575,"uuid":"234419047","full_name":"Hejki/SassPublishPlugin","owner":"Hejki","description":"A Swift-Sass plugin for the Publish static site generator","archived":false,"fork":false,"pushed_at":"2024-12-17T08:49:23.000Z","size":8,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T20:42:45.844Z","etag":null,"topics":["libsass","plugin","publish","publish-plugin","sass","scss","swift-sass"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hejki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-16T21:52:32.000Z","updated_at":"2025-04-09T10:15:18.000Z","dependencies_parsed_at":"2025-04-14T20:34:48.632Z","dependency_job_id":"ac2ce9f8-e918-4908-bb55-14cbe4f8ae47","html_url":"https://github.com/Hejki/SassPublishPlugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejki%2FSassPublishPlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejki%2FSassPublishPlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejki%2FSassPublishPlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hejki%2FSassPublishPlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hejki","download_url":"https://codeload.github.com/Hejki/SassPublishPlugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251008893,"owners_count":21522196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["libsass","plugin","publish","publish-plugin","sass","scss","swift-sass"],"created_at":"2024-08-02T07:00:37.325Z","updated_at":"2025-04-26T15:32:44.519Z","avatar_url":"https://github.com/Hejki.png","language":"Swift","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# Sass plugin for Publish\n\nA [Publish](https://github.com/johnsundell/publish) plugin that makes it easy to integrate the [Swift-Sass](https://github.com/robinwalterfit/Swift-Sass.git) wrapper around LibSass C/C++ port of the Sass engine.\n\n## Installation\n\nTo use this repository you need to install the LibSass Library first. See [this instructions](https://github.com/sass/libsass/blob/master/docs/build.md) for building/installing LibSass.\n\nTo install plugin into your [Publish](https://github.com/johnsundell/publish) package, add it as a dependency within your `Package.swift` manifest:\n\n```swift\nlet package = Package(\n    ...\n    dependencies: [\n        ...\n        .package(url: \"https://github.com/hejki/sasspublishplugin\", from: \"0.1.0\")\n    ],\n    targets: [\n        .target(\n            ...\n            dependencies: [\n                ...\n                \"SassPublishPlugin\"\n            ]\n        )\n    ]\n    ...\n)\n```\n\nThen import SassPublishPlugin wherever you’d like to use it:\n\n```swift\nimport SassPublishPlugin\n```\n\nFor more information on how to use the Swift Package Manager, check out [this article](https://www.swiftbysundell.com/articles/managing-dependencies-using-the-swift-package-manager), or [its official documentation](https://github.com/apple/swift-package-manager/tree/master/Documentation).\n\n## Usage\n\nThe plugin can then be used within any publishing pipeline like this:\n\n```swift\nimport SassPublishPlugin\n...\ntry DeliciousRecipes().publish(using: [\n    .installPlugin(\n        .compileSass(\n            sassFilePath: \"Sources/sass/styles.sass\", \n            cssFilePath: \"styles.css\"\n        )\n    )\n    ...\n])\n```\n\nYou can use predefined compressed sass options for minimal result:\n\n```swift\n.compileSass(\n    sassFilePath: \"Sources/sass/styles.sass\", \n    cssFilePath: \"styles.css\",\n    compressed: true\n)\n```\n\nOr yse can define sass options manually:\n\n```swift\n.compileSass(sassFilePath: \"styles.sass\", cssFilePath: \"styles.css\") { options in\n    options.setOutputStyle(.compact)\n    options.setSourceComments(true)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHejki%2FSassPublishPlugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHejki%2FSassPublishPlugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHejki%2FSassPublishPlugin/lists"}