npm install
to install dev packages.npm run dev
to 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 https://localhost:8000/
- Pick on example to test and edit the corresponding
/examples/[name].js
, or create a new file under/examples
to 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 check
to check typescript,npm run lint
to check eslint before commit, or usenpm run fmt
to 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!