The production bundle is available as ESM bundle.
import { Bingo } from 'bingo-generator';
// Initialize bingo-generator
// 'bingo-container' is the id of the HTMLElement that renders the Bingo
const bingo = new Bingo('bingo-container'); bingo.resetGrid();The result should be something like this:
bingo.updateBackgroundColor('36', 'Pink');The result should be something like this:
bingo.registerHandler(cell => {
alert(`You click on square ${cell.value}`);
});This API could be useful for the implementation of the demonstrators.
The current handler parameter may not be enough or the wrong one. You are free to adapt it.
The project is configured with Jest for the tests, Playwright & Jest-image-snapshot for the visual tests, ESLint for the code formatting.
If you have a problem with IntelliJ, try to change the configuration of ESLint in the IntelliJ preferences, like:

npm run watch
A server is launched with an HTML page to test the library manually: http://localhost:10001.
Livereload/watch is enabled.
You should have the following rendering:
npm run lint
npm run clean
npm run test
npm run test:unit
npm run test:unit:coverage
npm run all
Run a clean production build with lint and test
npm run build


