module-scaffolding

Installation
SKILL.md

Module scaffolding

Every feature lives under app/<mod>/ as a self-contained module. There is no autoloader — preloads, import aliases, migration paths, tsconfig includes, and event listener mounts are all wired explicitly. Miss any of these and the module simply won't load, its rows won't migrate, or its event types won't typecheck.

Quick start — make:module

Do not wire by hand unless you have to. The generator creates the skeleton and injects every touchpoint idempotently:

node ace make:module <mod>                     # routes + controller + ui page + smoke test
node ace make:module <mod> --db --i18n --events
  • --db — adds database/migrations/ and registers its path in config/database.ts.
  • --i18n — adds resources/lang/{en,fr,pt}/<mod>.json and registers the i18n loader.
  • --events — adds start/events.ts + types/events.ts, preloads events, and adds the types/** glob to the core tsconfig (skip that and the EventsList merge breaks the client typecheck).

Always wired: the #<mod>/* alias, the #<mod>/routes preload, and the ui/** tsconfig include. After running it, pnpm dev (or any node ace) regenerates route/page types, then pnpm typecheck. The rest of this skill is what the command does under the hood — use it to add a piece later or to wire a module by hand.

Installs
7
GitHub Stars
96
First Seen
12 days ago
module-scaffolding — filipebraida/adonisjs-starter-kit