corewar-repository v0.2.3-alpha.4

Corewar
Typescript / Javascript implementation of the classic game corewar
Currently this project contains a corewar IDE, redcode parser and core simulator.
In future we hope to include local and remote hills and benchmarks and possibly to begin extending corewar itself.
This is the monorepo for the corewar.io project and contains the following packages:
- corewar - npm package providing parser and simulator
- corewar-ui - corewar.io user interface implemented as a spa
- corewar-api - corewar.io api implemented in graphql
Documentation for the project along with guidance on corewar and the redcode language can be found on Read the Docs
Scripts
This project uses lerna in order to manage the monorepo.
Node 12+ is required.
Prepare development environment
npm install --global lerna eslint-cli
npm run bootstrapCurrently
lerna boostrapcommand is not building thecorewarlibrary. Documentation says it should automatically executeprepublishon all bootstrapped libraries but doesn't. In order to successfully bootstrap this application it is necessary to manually executelerna run prepublishfollowing bootstrap. I don't know why. If anyone knows, please let me know!
Start API and UI
npm startBuild UI and Core library
npm run buildLint and test all packages
Linting and testing are performed by eslint and jest.
npm run lint
npm testAutomatically fix linting errors with
npm run lint:fixProduce code coverage report with
npm run coverage