-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
31 lines (25 loc) · 879 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
:: Don't show these commands to the user
@echo off
:: Keep variables local, and expand at execution time not parse time
setlocal enabledelayedexpansion
:: Set the title of the window
title Build and serve
echo 1. Sass
echo 2. Serve
echo 3. Exit
choice /C 123 /M "Enter an option: "
:: List ERRORLEVELS in descending order
if errorlevel 3 goto:EOF
if errorlevel 2 goto Serve
if errorlevel 1 goto Sass
:Serve
echo -------------------------------------------
echo Starting webserver...echo Starting webserver at http://localhost:5000
echo Press Ctrl+C to stop
echo -------------------------------------------
ruby -run -e httpd . -p 5000
:Sass
echo -------------------------------------------
echo Building CSS with Sass and watching for changes
echo -------------------------------------------
sass --watch versed.scss:versed.css --style compressed --sourcemap=none