Bare bones setup to start a JS13K game.
- dev : Start dev server (using webpack-dev-server)
- build:dev : Build app to
publicfolder (without optimizations) - build:prod : Build app to
publicfolder (with minimization and tree shaking) - package: Build prod and pack
public/index.htmlandpublic/main.jsto a zip file, checking for the size to be below 13K
- module in
tsconfig.jsoncannot becommonjsfor tree-shaking to work - The example app uses Kontra, TinyMusic and JS13K-ECS
- To have the chrome debugger work with the dev server in visual studio code add the following to the configurations in
launch.json
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:8080",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///./*": "${workspaceRoot}/*",
"webpack:///src/*": "${workspaceRoot}/*",
}
}- Finish the types definitions for JS13K-ECS
- Finish the types definitions for TinyMusic
- Add types definitions for either Kontra or TinyCanvas (depending on the used one)