forked from zjhiphop/cheetah
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
19 lines (17 loc) · 1.34 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@echo off
setlocal enabledelayedexpansion
set PATH=%PATH%;C:/Program Files/nodejs;
rd /s /q build-client
cd /d .
call :coffee
call :less
call :stlus
node script/lib/r.js -o app.build.js
pause
:coffee
for /r script %%i in (*.coffee) do if exist %%i coffee -c %%i
:less
for /r css %%i in (*.less) do if exist %%i lessc %%i css/less/%%~ni.css
::for /r css %%i in (*.less) do if exist %%i lessc %%i css/%%~ni-less.css
:stlus
for /r css %%i in (*.styl) do if exist %%i stylus %%i