Skip to content

Schematics

The @typeix/schematics generators behind the Typeix CLI: application, module, controller, service and more.

1 min read Source

Angular-style schematics that scaffold Typeix code. These are the generators used by @typeix/cli, and they can also be run directly with the Angular CLI tooling or programmatically.

Installation

npm install -g @typeix/schematics

Generators

Name Produces
application a new application
sub-app an application inside an existing workspace
library a shared library
module a @Module() class
controller a @Controller() class
service an injectable service
provider a provider
class a plain class
decorator a decorator
interceptor a request or method interceptor
angular-app an Angular client application

Usage

typeix generate controller users
ng generate @typeix/schematics:controller users

The CLI wraps the same collection, so the generator names and options are identical.