Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 2.41 KB

README.md

File metadata and controls

50 lines (31 loc) · 2.41 KB

game-bucket

Common game utilities + rollup config, suitable for a small game competition. Like JS13k! In TypeScript!

Examples:

Includes:

Rollup bundles JS using ES2015 modules, but does not leave any of the import/export syntax in the resulting bundle. It pulls everything into the same lexical scope, uniquely named. This makes it excellent for a size-based competition, because by its very nature it emits the smallest representation of code! Combined with UglifyJS this gets us very close to a nice base size.

Usage

Fork this repo, then add / change code in src/index.js as you see fit! There are dependencies included, but you can remove those. Rollup ensures that only code you import is included!

yarn start

Run type checking, rollup, and a local http server in watch mode.

yarn zip

How close are you to the limit? Compiles in production mode, and creates a zip suitable for JS13K in /dist!

yarn deploy

Build a zip, then deploy the dist folder to gh-pages seamlessly! Best for testing your game on multiple devices.

yarn http-server dist/

Done automatically by yarn start, but perhaps you just ran yarn zip and want to run the actual compiled/mangled code.

LICENSE

MIT