/stratops

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

stratops

Test

Strategy games and strategy game variant rules and operations in TypeScript.

based on chessops: https://github.com/niklasf/chessops/

Development

Install build dependencies

pnpm install

Update deps based on package.json file

rm -rf node_modules pnpm-lock.yaml && pnpm store prune && pnpm install

Compile typescript

pnpm run prepare --watch

Run tests

pnpm run test --watch
pnpm run test src/squareSet --watch

Before committing

pnpm run lint
pnpm run format

Watch changes from another project (link)

In the other project (e.g. lila)

  • declare the link towards stratops (from project's package.json)
"dependencies": {
  ...
  "stratops": "link:/path/to/stratops",
  ...
}

in stratops

  • create .env.local file based on .env.local.default
  • link back:
pnpm run link
  • trigger compilation (no watch mode):
pnpm run prepare

License

stratops is licensed under the GNU General Public License 3 or any later version at your choice. See LICENSE.txt for details.