The repository includes several packages related to Cere Games SDK
:
- Cere Games SDK - the SDK itself
- Cere Games SDK UI - the SDK UI elements
- Other utility packages
- Install dependencies:
nvm exec npm i
- Create
.env
file:
cp .env.dev .env
- Run playground application:
nvm exec npm run playground
- Run examples:
nvm exec npm start
- Build libraries in production mode:
nvm exec npm run build
- 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)
- Build libraries and examples
nvm exec npm run bundle
- Run tests
nvm exec npm test # headless
nvm exec npm start --workspace @cere-games-sdk/wdio # in browser
- Generate and open report
npm run test:report
- Build the application bundle
nvm exec npm run bundle
- 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
- Generate and open report
npm run test:report