-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.cmd
41 lines (30 loc) · 803 Bytes
/
run.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
@echo off
if "%1" == "recreate-db" (
cmd /k "mongo localhost:27017/laf-dev < db/recreate.js"
echo. & echo Done
)
if "%1" == "app" (
cmd /k "mongod" -new_console:t:mongod
timeout 5
cmd /k "nodemon ./server/server.js --watch ./server" -new_console:t:nodemon
cmd /k "gulp compile" -new_console:t:compile
echo. & echo App started
)
if "%1" == "setup" (
cmd /k "node mockup/setup/run.js %2 %3"
echo. & echo Done
)
if "%1" == "test" (
if "%2" == "-unit" (
cmd /k "karma start karma.conf.js" -new_console:t:unit
echo. & echo Unit tests started
)
if "%2" == "-model" (
cmd /k "mongod" -new_console:t:mongod
cmd /k "cd tests/model" -new_console:t:mocha
echo. & echo Db tests started
)
)
if "%1" == "zip" (
cmd /k "7z a -tzip laf.zip"
)