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( url: "https://github.com/robinwalterfit/Swift-Sass.git", from: "1.0.0" )
Running the tests
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
Break down into end to end tests
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.
- Robin Walter - Initial work - robinwalterfit
This project is licensed under the MIT License - see the LICENSE file for details