https://github.com/yetanalytics/sassenach
Sass Compilation Utils
https://github.com/yetanalytics/sassenach
Last synced: 9 months ago
JSON representation
Sass Compilation Utils
- Host: GitHub
- URL: https://github.com/yetanalytics/sassenach
- Owner: yetanalytics
- License: epl-1.0
- Created: 2018-11-02T14:32:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-21T21:29:10.000Z (over 7 years ago)
- Last Synced: 2025-05-18T17:08:36.660Z (about 1 year ago)
- Language: Clojure
- Size: 14.6 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# sassenach
[](https://clojars.org/com.yetanalytics/sassenach)
A Clojure library to make Sass compilation a tiny bit easier. It wraps [sass4clj](https://github.com/Deraen/sass4clj), which I guess makes it a wrapper of a wrapper of a wrapper? In any case, I assure you that this is the hottest wrapper out there right now.
## Usage
### Watch & Compile
With sassenach on the classpath:
``` shell
$ clojure -m com.yetanalytics.sassenach resources/sass/style.scss resources/public/css/style.css
```
Keep it handy in your `~/.clojure/deps.edn`:
``` clojure
{...
:aliases
{...
:watch-sass
{:main-opts ["-m" "com.yetanalytics.sassenach"]
:extra-deps
{com.yetanalytics/sassenach
{:git/url "https://github.com/yetanalytics/sassenach"
:sha "1e0ad0c557463c86332e036837bb65df8fcabd9b"}}}
...}
...}
```
And run it:
``` shell
$ clojure -A:watch-sass resources/sass/style.scss resources/public/css/style.css
```
Or in your favorite project, with paths plugged in:
``` clojure
{...
:aliases
{...
:watch-sass
{:main-opts ["-m" "com.yetanalytics.sassenach"
;; input path
"resources/sass/style.scss"
;; output path
"resources/public/css/style.css"
;; ...and as many extra paths to walk as you like.
;; sass4clj is resource-aware, so you can use
;; this to watch files that cannot be inferred
;; from the scss input path.
"some/other/path/to/watch"
"another/one"]
:extra-deps
{com.yetanalytics/sassenach
{:git/url "https://github.com/yetanalytics/sassenach"
:sha "1e0ad0c557463c86332e036837bb65df8fcabd9b"}}}
...}
...}
```
And run it:
``` shell
$ clojure -A:watch-sass
```
Use the time you save to make beautiful things.
## Testing
``` shell
$ clojure -A:test:runner
```
## License
Copyright © 2018 Yet Analytics Inc.
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.