1.0.1 • Published 2 months ago

@small_god/schematics v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@small_god/schematics

@small_god/schematics is a custom Angular schematic that simplifies and standardizes the generation of Angular components with ChangeDetectionStrategy.OnPush by default.

It is also expected to provide optional support for Angular signals, making it ideal for zoneless and performance-focused Angular projects.


Features

  • ✅ Generates components with ChangeDetectionStrategy.OnPush automatically

  • ⚡ Supports optional signal import for reactive patterns (coming soon)

  • 🧩 Supports Angular standalone components

  • 🛠️ Works seamlessly with Angular CLI via ng generate


📦 Installation

Install the schematics package via npm:

npm install @small_god/schematics

Or link it locally during development (see Development)

🚀 Usage

To generate a new component using the schematic:

ng g @small_god/schematics:component

or

ng g @small_god/schematics:c
  • You will be prompted to provide:

  • The component name

  • Whether to include signals support (coming soon)

📝 Development

To contribute to this project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/ellaboevans/schematics.git
    cd schematics
  2. Install dependencies:

    npm install
  3. Build the schematics:

    npm run build
  4. Link the schematics locally:

    npm link
  5. In your Angular project, link the schematics:

    npm link @small_god/schematics
  6. Use the schematics in your Angular project:

    ng g @small_god/schematics:component

📄 License

MIT © 2025 Evan Elabo

Feedback

If you have any feedback or suggestions, please open an issue or submit a pull request on the GitHub repository.