forked from DemocracyOS/democracyos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.cmd
57 lines (47 loc) · 863 Bytes
/
make.cmd
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@echo off
rem
rem DemocracyOS Makefile emulation for Windows
rem
if DEBUG == "" set DEBUG=democracyos*
if NODE_ENV == "" set NODE_ENV="development"
if not "%1" == "run" goto packages
if exist INSTALLED goto run
echo Installing dependencies...
call npm install
echo INSTALLED >INSTALLED
echo.
echo Installed !
echo.
:run
echo Starting application...
set NODE_PATH=.
set DEBUG=%DEBUG%
call node index.js
goto end
:packages
if not "%1" == "packages" goto clean
echo Installing dependencies...
call npm install
echo INSTALLED >INSTALLED
echo.
echo Installed !
echo.
goto end
:clean
if not "%1" == "clean" goto help
echo Removing dependencies, components and built assets.
rd /S/Q node_modules
rd /S/Q components
rd /S/Q public
del INSTALLED
echo Done !
goto end
:help
echo.
echo make [command]
echo.
echo packages
echo run
echo clean
echo.
:end