Code Is Art
banner
code-is.bsky.social
Code Is Art
@code-is.bsky.social
Hope.
Thanks a lot! I've managed to get it partially working and I'll probably add the other schematics later on if need be. Cheers 👍🏾
October 16, 2025 at 1:02 PM
I know you're able to generate certain files based on options (like the external styles and external html files for components), maybe I can do something similar. Have different template files and generate one based on an option 🤔. That way the class is clean and only the file name changes
October 16, 2025 at 11:36 AM
Hmmmm I see. The thing is that the file name is correct, what I want to deal with is the class declaration code.

- [productId].page.ts -> class ProductIdPage
- (test).page.ts -> class TestPage

See image, the comment on the right is what I want to achieve.
October 16, 2025 at 11:36 AM
Oh okay thanks. I've verified the behaviour, I guess what I was expecting was that you can click from anywhere and it would generate in the predefined path.
October 16, 2025 at 9:52 AM
Hi, I've made some progress but need help with 2 things. Sometimes my file name is something like (blog) or [productId] and I can't find a way with the inbuilt helpers to remove [] or () in the template leading to `class (blog)Page {}`. Second, how does the pathsWithPredefinedSchematic work?
October 16, 2025 at 8:01 AM
Let me give it a go, if I'm stuck I'll reach out again. Thanks for your time, was great interacting 👍🏾
October 15, 2025 at 4:53 PM
Ah I see, essentially it runs custom commands, got it. I tried to create a custom schematic using a template and also starting from scratch but it was tricky; there are a lot of options. Some docs would help, maybe you could point me in the right direction for how to do that.
October 15, 2025 at 2:18 PM
Sure, I was under the impression that I can add custom schematics I use in my project as long as they work with ng generate. The analogjs schematics also use the angular cli and I thought there's a way to make them appear when I right click a directory and click the extension's "Generate a file".
October 15, 2025 at 1:54 PM
Gonna take some getting used to. But It looks fun
March 15, 2025 at 6:26 AM