Sass

1.0.1

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

What's New

v1.0.1

2017-10-28T19:33:15Z

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

Description

  • Swift Tools 4.0.0
View More Packages from this Author

Dependencies

Last updated: Sat Mar 16 2024 11:05:10 GMT-0900 (Hawaii-Aleutian Daylight Time)