Conspirator is a Dominion game engine implemented in TypeScript, including an HTML UI. Currently, the Baseset and Intrigue are implemented.
To get started:
-
install node.js and npm, e.g. on a Mac:
brew install node
-
install the project's dependencies
npm install
3a) generate javascript
grunt
3b) or to automatically re-generate the javascript on source code changes
grunt watch
- open index.html to start!
-
to automatically test compilation and run tests on commit:
echo "grunt && grunt test" > .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit
-
to manually run tests
run tests with:
grunt test
-
to manually run specific test files and tests:
mocha -r ts-node/register test/{FILE}.ts --grep TEST