-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
feat(platform): improve nx plugin and add tRPC support #382
Conversation
✅ Deploy Preview for analog-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for analog-blog ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for analog-app ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
…mplate adds option to the nx generator to let users add the new trpc client. moves v16 app to use the new ApplicationConfig pattern. improves templates by adding separate templates for tailwind and non tailwind. same for trpc and non trpc.
…aking options optional
…onfig, improve templates peer dependencies for tRPC client are now auto installed if user opts to use trpc in their project. also made minor improvements to make vite.config and tRPC config match. continued to improve styling of template files, but this is still biggest work in progress.
762efe1
to
082d043
Compare
this commit adds template pages that can be used in the nx plugin and display the features of analog and some general information. if we like these templates we can also adapt them for create-analog. an example of what the template looks like is also added to the trpc-app.
...nx-plugin/src/generators/app/files/template-angular-v16/src/app.config.server.ts__template__
Outdated
Show resolved
Hide resolved
packages/nx-plugin/src/generators/app/lib/add-analog-project-config.ts
Outdated
Show resolved
Hide resolved
packages/nx-plugin/src/generators/app/files/template-angular-v16/src/wait-for.ts__template__
Outdated
Show resolved
Hide resolved
Lots of great changes! Some thoughts
|
Also, I think branching into two sets of template files would be simpler then lots of if/else weaved into the generator templates |
@brandonroberts I removed the features and open-source sections of each template. I added some color and the logo at the top of the page. I moved each page in its own template instead of doing the if/else logic inside a single one. Thanks for the feedback and let me know if it looks good now 😃 |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Which package are you modifying?
What is the current behavior?
So far you had to manually install and integrate the tRPC client.
Issue Number: N/A
What is the new behavior?
This adds a prompt that allows you to
configure the tRPC client out of the box.
Does this PR introduce a breaking change?
Other information
The next step is to come up with much better looking templates for the starters.
Things to consider are:
Also worth adding might be the blog starter