forked from aralejs/nico-arale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
43 lines (35 loc) · 842 Bytes
/
make.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
31
32
33
34
35
36
37
38
39
40
41
42
43
@ECHO OFF
set THEME=%HOMEDRIVE%%HOMEPATH%\.spm\themes\arale
set SITE=_site
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.Please use `make ^<target^>` where ^<target^> is on of
echo. build-doc to make documentation
echo. debug to make a debug server
echo. server to make a normal server
echo. watch to make a watch server
goto end
)
if "%1" == "clean" (
for /d %%i in (%SITE%\*) do rmdir /q /s %%i
del /q /s %SITE%\*
goto end
)
if "%1" == "build-doc" (
nico build -v -C %THEME%\nico.js
goto end
)
if "%1" == "debug" (
nico server -v -C %THEME%\nico.js --watch debug
goto end
)
if "%1" == "watch" (
nico server -v -C %THEME%\nico.js --watch
goto end
)
if "%1" == "server" (
nico server -v -C %THEME%\nico.js
goto end
)
:end