yarn run start
and yarn run watch
together,which alternatively can be run separately if you wish.package.json
to see all available development scripts.yarn run start-watch
from above, then running the command yarn run start
is notnecessary..htaccess
let the game run in Apache. Everythingshould work if you point it at the build
folder with mod_rewrite enabled.js/test
folder.Coverage is not great. They can be run from the command line in Karma withsrc/js/ui
folder and the core game code is in the src/js/worker
folder. They communicatethrough the toUI
and toWorker
functions.src/js/worker/db/Cache.js
) sits on top of the database containing all commonlyaccessed data. The idea is that IndexedDB should only be accessed for uncommonsituations, like viewing stats from past seasons. For simulating games andviewing current data, only the cache should be necessary.idb.cache.*.put
.self.bbgm
which gives youaccess to many of the internal functions of the game from within your browser.console.log
something inside the Shared Worker, you won't see it in the normal JS console.Instead, you need to go to chrome://inspect/#workers and click 'Inspect' underhttp://localhost/gen/worker.js.yarn run start
!