cere-io / cere-games-sdk

Cere Games SDK
0 stars 1 forks source link

Cere Games SDK mono repository

The repository includes several packages related to Cere Games SDK:

Quick start

  1. Install dependencies:
nvm exec npm i
  1. Create .env file:
cp .env.dev .env
  1. Run playground application:
nvm exec npm run playground
  1. Run examples:
nvm exec npm start
  1. Build libraries in production mode:
nvm exec npm run build
  1. Publish the packages to NPM:
nvm exec npm run release # creates new release (pushes commit and tag)
nvm exec npm run release:publish # publishes packages (usually done by CI)

Auto tests

  1. Build libraries and examples
nvm exec npm run bundle
  1. Run tests
nvm exec npm test # headless
nvm exec npm start --workspace @cere-games-sdk/wdio # in browser
  1. Generate and open report
npm run test:report

Simulation

  1. Build the application bundle
nvm exec npm run bundle
  1. Run simulation
nvm exec npm test -- --suite=simulation --maxInstances=5 --multi-run=10 # headless
nvm exec npm start --workspace @cere-games-sdk/wdio -- --suite=simulation --maxInstances=5 --multi-run=10 # in browser
  1. Generate and open report
npm run test:report