The Swift-Sass repository is a wrapper around the LibSass C/C++ port of the Sass engine.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Note: The following methods aren't working yet (see also this):
func setIndent(_:String)
func setLinefeed(_:String)
To use this repository you need to install the LibSass Library first.
See this instructions for building/installing LibSass.
If you want to use Swift-Sass for example in your server-side Swift projects, all you have to do is add the dependency to your Package.swift
:
.package( url: "https://github.com/robinwalterfit/Swift-Sass.git", from: "1.0.0" )
The test are available for macOS through Xcode and haven't been optimized for Linux, yet.
All you have to do is edit the following lines according to your needs:
let inputPath: String = "/Users/you/yourProjectsFolder/Swift-Sass/res/scss/style.scss"
let outputPath: String = "/Users/you/yourProjectsFolder/Swift-Sass/res/style"
Lines: 10 & 11 in ./Tests/SassTests/SassTests.swift
Just run the tests in Xcode or navigate to the project root folder in Terminal and execute:
$ swift test
These tests uses some Scss files of your choice โย e.g. I chose Bootstrap โ and compile them with different options.
There should be nothing else to do for deployment ๐ฎ
- LibSass โย The C/C++ port of the Sass engine
- Swift-libsass โ The C library link
- Swift PM โ Dependency Management
Please read CONTRIBUTING.md for details on my code of conduct, and the process for submitting pull requests to me.
I use SemVer for versioning. For the versions available, see the tags on this repository.
- Robin Walter - Initial work - robinwalterfit
This project is licensed under the MIT License - see the LICENSE file for details
- Checkout these amazing cheat sheets: README-Template, CONTRIBUTING-Template & GitHub Emojis
- Server-side Swift with Vapor, Perfect, Kitura or Zewo