2012-06-21 10:13:21 +02:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
:: Path to impact.js and your game's main .js
|
|
|
|
SET IMPACT_LIBRARY=lib/impact/impact.js
|
|
|
|
SET GAME=lib/game/main.js
|
|
|
|
|
|
|
|
:: Output file
|
|
|
|
SET OUTPUT_FILE=game.min.js
|
|
|
|
|
|
|
|
|
2013-04-03 21:02:06 +02:00
|
|
|
:: Change CWD to Impact's base dir
|
2012-06-21 10:13:21 +02:00
|
|
|
cd ../
|
|
|
|
|
|
|
|
|
2013-04-03 21:02:06 +02:00
|
|
|
:: Bake!
|
|
|
|
php tools/bake.php %IMPACT_LIBRARY% %GAME% %OUTPUT_FILE%
|
|
|
|
|
2012-06-21 10:13:21 +02:00
|
|
|
:: If you dont have the php.exe in your PATH uncomment the
|
|
|
|
:: following line and point it to your php.exe
|
|
|
|
|
2013-04-03 21:02:06 +02:00
|
|
|
::c:/php/php.exe tools/bake.php %IMPACT_LIBRARY% %GAME% %OUTPUT_FILE%
|
2012-06-21 10:13:21 +02:00
|
|
|
|
|
|
|
pause
|