Add build scripts for Windows

pull/3221/head
ProgramFOX 2017-07-05 13:33:16 +02:00
parent 43377feaf1
commit a8ab351a00
4 changed files with 33 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
conf/application.conf
bin/dev
bin/dev.bat
logs
project/project
project/target

View File

@ -0,0 +1,9 @@
# Starts a dev console to compile and run lichess.
# To edit this file, copy it to bin\dev.bat: it's not indexed by Git.
@echo off
# Yes it needs tons of memory. Go for 2048M if you have them.
set JAVA_OPTS=-Xms1536M -Xmx1536M -XX:ReservedCodeCacheSize=64m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+ExitOnOutOfMemoryError -Dkamon.auto-start=true
sbt %*

BIN
bin/gen/geoip.ps1 100644

Binary file not shown.

23
ui/build.bat 100644
View File

@ -0,0 +1,23 @@
@echo off
mkdir public\compiled
set ts_apps=common chess ceval game tree
for %%t in (%ts_apps%) do @(
call echo Building TypeScript: %%t
call cd ui\%%t
call yarn install --non-interactive
call yarn run compile --non-interactive
call cd ..\..
)
set apps=site chat challenge notify learn insight editor puzzle round analyse lobby tournament tournamentSchedule simul perfStat dasher
for %%a in (%apps%) do @(
call echo Building: %%a
call cd ui\%%a
call yarn install --non-interactive
call gulp dev
call cd ..\..
)