最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Implementation of custom Angular schematics inside a project - Stack Overflow

programmeradmin1浏览0评论

I have an Angular 19 project and would like to add some schematics to it. Since these will depend on project components, such as src/shared/*, I don't see a reason to create a separate project as an independent library.

Therefore, I would like to create the schematics inside the project's schematics folder, at the same level as src.

However, after some testing (via schematics cli and manually), I realized that I need to generate the build to be able to use the schemas from ng generate my-feature feature-test.

Is it possible to do this build automatically when needed (including when sharing commits with the team)?

Even when creating a project with the schematics cli, I can't use it in the rest of the project without building each time a schema is changed.

Am I trying to use schematics in a way they weren't designed for?

发布评论

评论列表(0)

  1. 暂无评论