Skip to content

danielholmes/battle-for-hill-218

Repository files navigation

The Battle for Hill 218

Test

BoardGameArena implementation of the card game The Battle for Hill 218. Uses the BoardGameArena Workbench.

Development Requirements

Setting up Developer Machine

Set up vagrant machine and fill in a bgaproject config with your BGA studio details. You should have gotten these details in your BGA welcome email.

vagrant up
vagrant ssh
cp bgaproject.yml.dist bgaproject.yml
vi bgaproject.yml

Running Analysis and Tests

vagrant ssh
composer test
composer bga-validate
composer fix-styles
yarn lint

Compiling images

Compile the images in resources/cards into a tilesheet and provide the CSS. See CompileImagesCommand to add or change tilesheet.

vagrant ssh
composer compile-images

Deploying to Studio

This deploys to BGA studio only and allows you to test on there. Deployment to live BGA is then done manually through the studio interface.

vagrant ssh
composer deploy

Continuous Deployment to Studio

Watches development files and deploys them as they change.

vagrant ssh
bgawb build --deploy --watch

Git Pre-Commit Hook

Available in etc/pre-commit. Runs an auto style detection and prevents commit if any issues.

TODO