Developer Mode
Developer Mode
File-based development workflow — edit sketch source in your editor, compile to .genart.
Developer mode provides a traditional file-based workflow for creating generative art. Instead of editing a single .genart JSON file, you work with a project directory containing separate source files.
Workflow
- Eject a
.genartfile to a project directory (orinit --deva new one) - Edit source files in your preferred code editor
- Compile the project back to a
.genartfile - Preview with the live dev server (
genart dev)
Commands
| Command | Description |
|---|---|
genart init --dev | Create a new developer project |
genart eject | Extract .genart to project directory |
genart compile | Compile project to .genart |
genart dev | Live preview with hot reload |
Benefits
- Use your preferred editor (VS Code, Vim, etc.)
- Version control individual source files
- Import local libraries and modules
- TypeScript support
- Live preview with hot reload