Last active
August 29, 2015 14:09
-
-
Save avataru/d93f4e548c5be3362c23 to your computer and use it in GitHub Desktop.
SASS watcher
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
@ECHO OFF | |
CHOICE /C:NXCO /N /T:5 /D:C /M:"Output [N]ested, E[x]panded, [C]ompact or C[o]mpressed?" | |
SET ZONE=%ERRORLEVEL% | |
CLS | |
IF %ZONE% EQU 1 GOTO :Nested | |
IF %ZONE% EQU 2 GOTO :Expanded | |
IF %ZONE% EQU 3 GOTO :Compact | |
IF %ZONE% EQU 4 GOTO :Compressed | |
:Nested | |
SET OUTPUT=nested | |
GOTO :Watch | |
:Expanded | |
SET OUTPUT=expanded | |
GOTO :Watch | |
:Compact | |
SET OUTPUT=compact | |
GOTO :Watch | |
:Compressed | |
SET OUTPUT=compressed | |
GOTO :Watch | |
:Watch | |
ECHO The compiled stylesheet will be %OUTPUT% | |
ECHO. | |
sass --watch ../resources/assets/sass:../public/styles --style %OUTPUT% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment