-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: option to integrate with an Angular CLI / Nx project #3
Comments
Hi @beeman, Thanks for checking out the project and I appreciate the kind words.
Yes, that was the original plan. I initially wanted to insert my own typescript transformer plugin into the webpack build pipeline, which would allow me to generate decorators before the angular compiler gets to them. Like this: This transformer would convert my own type of decorators and generate angular decorators ( But this was deemed impossible with the current compiler as it doesn't obey the rules of webpack (more details here)
I agree, but unless the This tool could allow for mono-repos too, but they wouldn't be compatible with traditional
Thanks for the discord link, I've posted it there too, under Cheers, |
Hi, first of all nice work done here, I'm happy to see that peoples still push the Angular community further. I'm also interested in this project and a big fan of Nx. I quickly digged in the code base and something attracted my attention. The way you grab the const PROJECT_DIR = path.join(process.cwd(), ProjectName || ""); What about defining this var from the configuration file? Reading the That's the common mechanism used in Nx, the only difference is that you need to fallback the Edit: I don't think it's the only thing to do to make this project work with Nx but it's a requirement in any case. |
Hi @edbzn, Thanks for checking it out, appreciate the feedback. This command could potentially grab the project name from an environment variable, or another command could be created, especially for Lines 33 to 40 in d6e2f67
I'm not exactly sure at how Well to clear things up a little, this project (ngext) abstracts from the Cheers, |
Hey Ben, I just saw this project on Twitter and it looks super interesting. I've been working on a prototype with a very similar goal, with file based routing generating all the repetitive code as needed, but you took it a few steps further!
I like how you added the
imports
key to the Component directive.I'm wondering if you have considered trying to implement this using a plugin that could be hooked into a normal Angular CLI (or Nx CLI) workspace, maybe by extending the webpack config or using a custom builder.
I think having the ability to integrate with a common Angular project would be ideal as it leaves folks in a common structure and allows to do things like monorepos.
If it sounds interesting, I'd be happy to talk about collaborating on that effort. In case you're not aware, there is an Angular Community on Discord where you can find me with the same username.
The text was updated successfully, but these errors were encountered: