@ori-ori/templates
v0.1.0
Published
DDD code-generation templates for ori
Readme
@ori-ori/templates
Code-generation templates used by ori init --template <name> and by
phase 4 (impl-green) of ori feature run.
Templates
ddd-typescript — minimal feature-sliced TypeScript DDD scaffold.
src/lib/<feature>/{domain,application,infrastructure,presentation,tests}src/lib/shared/{types,events,contracts}for cross-feature primitives- one feature exposes only
index.tsas its public API .ori/architecture.mdis the SSoT;eslint.config.ori.jsis generated from it via@ori-ori/arch-adapter-eslint- ships a worked
tasksaggregate + vitest specs
ddd-typescript-tauri — Tauri 2 derivative of
ddd-typescript.- mirrors the TS-side feature/UI layout
- adds a Rust feature-sliced backend at
src-tauri/src/features/<f>/withmod.rsas the sole public entry - multi-root
.ori/architecture.md(ts + rs); compiled by@ori-ori/arch-adapter-eslintand@ori-ori/arch-adapter-rust tauri-spectacross-root contract emitssrc/lib/shared/ipc/bindings.tsfrom the Rustcommands.rsof each feature
See each template's README.md for the full layout.
