Skip to content

The Swift-Sass repository is a wrapper around the LibSass C/C++ port of the Sass engine.

License

Notifications You must be signed in to change notification settings

robinwalterfit/Swift-Sass

Repository files navigation

Swift-Sass

The Swift-Sass repository is a wrapper around the LibSass C/C++ port of the Sass engine.

Getting Started

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)

Prerequisites

To use this repository you need to install the LibSass Library first.

See this instructions for building/installing LibSass.

Installing

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" )

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.

Deployment

There should be nothing else to do for deployment 😮

Built With

Contributing

Please read CONTRIBUTING.md for details on my code of conduct, and the process for submitting pull requests to me.

Versioning

I use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments