简体   繁体   中英

Integrate Angular schematics into Nx monorepo

I have an Angular schematic that I want to integrate to my Nx workspace. Calling the ng-add generator of the schematic on an existing Nx app like nx add @SCHEMATICNAME:ng-add fails with a message telling that Angular Material can only be used in default configurations. I want to be able to generate apps just like how I would do with nx g app NAME , but have it utilize my schematics. Can anyone nudge me in the right direction?

This video was exceptionally helpful for me to achieve this task. I recommend watching it. I ended up copying the files from the Angular schematic directly from node_modules and putting other necessary files in a folder, and making Json updates from inside the script.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM