Registry / testing / generator-tsoa-bootstrap

generator-tsoa-bootstrap

JSON →
library1.0.3jsnpmunverified

Yeoman generator for scaffolding Node.js projects with TSOA (TypeScript OpenAPI), Sequelize ORM, and Jasmine testing framework. Version 1.0.3 is the current stable release. It provides sub-generators for models, controllers, associations, CRUD operations, migrations, and SQLite scaffold, reducing boilerplate for API development. Unlike generic generators, it integrates TSOA's OpenAPI generation and Sequelize's migrations with Jasmine testing, offering automated DAO and test generation. The project is in maintenance mode with no recent updates; last commit was several years ago.

testingdevops
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Uses positional argument, not flag.

yo tsoa-bootstrap:model <modelName>

Uses positional argument.

yo tsoa-bootstrap:controller <name>

Order matters: from, type, to, through.

yo tsoa-bootstrap:association <from> <type> <to> [through]

Model is optional second positional argument.

yo tsoa-bootstrap:crud <controller> [<model>]

No arguments; prompts for name.

yo tsoa-bootstrap:migration

Installs Yeoman and runs the generator to scaffold a new project with TSOA, Sequelize, and Jasmine.

npm install -g yo yo tsoa-bootstrap
Debug
Known footguns
deprecatedTSOA version compatibility: This generator uses TSOA v2; newer TSOA v3 has breaking changes in route generation and decorators.
gotchaGenerator expects a database connection; test environment uses SQLite in-memory but config must be set.
gotchaModel name auto-singularized: generating a model with plural name will be singularized, which can cause confusion.
deprecatedSequelize migration command typo: `npm run :sequelize:migrate:undo` has a leading colon, which is likely a mistake.
gotchaCRUD generator infers model from controller name if not provided; may not match existing model.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
7 hits · last 30 days
gptbot
3
Resources