Lab13 CLI (l13
)
The Lab13 CLI (l13
) is a command-line tool designed specifically for JS13K game development. It provides a streamlined workflow for creating, building, and testing games that fit within the 13KB size constraint.
Installation
npm install -g l13
Or use with npx:
npx l13 --help
Quick Start
-
Create a new game project:
npx l13 create
-
Start development server:
npx l13 dev
-
Build for production:
npx l13 build
-
Preview the built game:
npx l13 preview
Features
- Project Scaffolding: Create new games from official examples
- Development Server: Hot-reload development with automatic builds
- Optimized Builds: Advanced compression and minification for JS13K
- Multiple Compression Methods: Support for various compression algorithms
- Asset Inlining: Automatic CSS and JS inlining
- Size Optimization: Built-in tools to help stay under 13KB
Commands
create
- Scaffold a new project from examplesdev
- Start development server with hot reloadbuild
- Build optimized production bundlepreview
- Serve built files locally
Environment Variables
DEBUG
- Enable debug loggingROADROLLER
- Enable Roadroller compressionEXPERIMENTAL
- Enable experimental compression methods