npm installto install dev packages.npm run devto start dev server. ~ to run npm run dev on Windows: change"dev": "NODE_ENV=development node scripts/dev.js"to"dev": "set NODE_ENV=development& node scripts/dev.js". Make sure to change back to original before commit.- Go to http://localhost:8000/
- Pick on example to test and edit the corresponding
/examples/[name].js, or create a new file under/examplesto test anything you're working on. - The source entry point is
src/kaboom.ts, editing any files referenced will automatically trigger rebuild. Make sure not to break any existing examples. - Before commit
npm run checkto check typescript,npm run lintto check eslint before commit, or usenpm run fmtto auto format with eslint ~ to run npm run lint on Windows: change"linebreak-style": [ "error", "unix" ]to"linebreak-style": [ "error", "windows" ]. Make sure to change back to original before commit.
Most kaboom docs are written in src/types.ts as jsDoc above each kaboom component entry.
Help on improving the documentation is appreciated! Thank you for contributing!