Skip to content

Commit

Permalink
Add build scripts for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-daniels committed Jul 5, 2017
1 parent 43377fe commit a8ab351
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
conf/application.conf
bin/dev
bin/dev.bat
logs
project/project
project/target
Expand Down
9 changes: 9 additions & 0 deletions bin/dev.default.windows.bat
Original file line number Diff line number Diff line change
@@ -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 %*
Binary file added bin/gen/geoip.ps1
Binary file not shown.
23 changes: 23 additions & 0 deletions ui/build.bat
Original file line number Diff line number Diff line change
@@ -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 ..\..
)

0 comments on commit a8ab351

Please sign in to comment.