Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dev2choiz/sasspiler
A fast sass transpiler to css made with golang
https://github.com/dev2choiz/sasspiler
go golang sass transpiler
Last synced: about 1 month ago
JSON representation
A fast sass transpiler to css made with golang
- Host: GitHub
- URL: https://github.com/dev2choiz/sasspiler
- Owner: dev2choiz
- License: mit
- Created: 2019-12-24T15:43:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-30T13:30:39.000Z (almost 5 years ago)
- Last Synced: 2024-08-03T09:07:02.018Z (4 months ago)
- Topics: go, golang, sass, transpiler
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-star - sasspiler
README
# Sasspiler
![](https://img.shields.io/github/tag/dev2choiz/sasspiler.svg) ![](https://img.shields.io/github/release/dev2choiz/sasspiler.svg) ![](https://img.shields.io/github/issues/dev2choiz/sasspiler.svg)Sasspiler is written in golang to transpile easily `.scss` files to `.css`.
It uses [wellington/go-libsass](https://github.com/wellington/go-libsass).## Installation with `go get`
This method require golang.
```sh
go get github.com/dev2choiz/sasspiler
```
The command above will generate `sasspiler` binary in `$GOPATH\bin`## Installation with `docker-compose`
```sh
git clone [email protected]:dev2choiz/sasspiler.git
cd sasspiler
docker-compose up --build
```
The `sasspiler` binary will be generated in `./bin`
Then :```sh
cp ./bin/sasspiler $GOPATH/bin/
```## Usage
```sh
sasspiler --source=/absolute/scss/dir --dest=/absolute/css/dir --importDir=/absolute/scss/dir1,/absolute/scss/dir2 --verbose
```
or
```sh
sasspiler -s=/absolute/scss/dir -d=/absolute/css/dir -i=/absolute/scss/dir1,/absolute/scss/dir2 -v
```
`--importDir` argument can be ignored if there is not `@import` in your scss to transpile.You can also transpile a unique file, in order for example to configure the file watcher of your IDE.
```sh
sasspiler --source=/path/to/file.scss --dest=/path/to/destination/file.css --importDir=/absolute/scss/dir1,/absolute/scss/dir2 --verbose
```