-
-
Save lauroguedes/820e9898aa344d0a028151436d240868 to your computer and use it in GitHub Desktop.
Watch script for wellington sassc wrapper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Install WWellington project (https://getwt.io/) | |
| # Run this script in your root project where is your sass folder | |
| # | |
| # Configuration | |
| # | |
| # sass source | |
| SASS_SOURCE_PATH="scss" | |
| # sass options | |
| SASS_OPTIONS="--source-map=false --style=nested" | |
| # css target | |
| CSS_TARGET_PATH="css-compiled" | |
| # | |
| # Check prerequisites | |
| # | |
| wtfile=$(command -v wt) || { echo "install wellington with 'brew install wellington'"; exit 1; } | |
| # | |
| # Watch folder for changes | |
| # | |
| cd -P `pwd` | |
| $wtfile compile "$SASS_SOURCE_PATH" -b "$CSS_TARGET_PATH" $SASS_OPTIONS | |
| $wtfile watch "$SASS_SOURCE_PATH" -b "$CSS_TARGET_PATH" $SASS_OPTIONS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment