Skip to content
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

Merged
merged 7 commits into from
May 11, 2023

Conversation

goetzrobin
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Which package are you modifying?

  • vite-plugin-angular
  • vite-plugin-nitro
  • astro-angular
  • create-analog
  • router
  • platform
  • content
  • nx-plugin
  • trpc

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?

  • Yes
  • No

Other information

The next step is to come up with much better looking templates for the starters.
Things to consider are:

  • App with Tailwind, no tRPC
  • App with Tailwind + tRPC
  • App without Tailwind, no tRPC
  • App without Tailwind + tRPC

Also worth adding might be the blog starter

@netlify
Copy link

netlify bot commented May 10, 2023

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit 17329ef
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/645d05272b42400008e25174
😎 Deploy Preview https://deploy-preview-382--analog-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented May 10, 2023

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit 17329ef
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/645d0527f69d540008872e1a
😎 Deploy Preview https://deploy-preview-382--analog-blog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented May 10, 2023

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit 17329ef
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/645d0527d787240008099dab
😎 Deploy Preview https://deploy-preview-382--analog-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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.
…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.
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.
@brandonroberts
Copy link
Member

Lots of great changes! Some thoughts

  • The generated app looks great but needs more color.
  • I think it would look even better possibly as the homepage for analogjs.org
  • Let's keep the generated app simple so there's less to do to customize. Maybe just have Analog logo, docs link, and the todo list for the tRPC app, and the counter for the regular app.

@brandonroberts
Copy link
Member

Also, I think branching into two sets of template files would be simpler then lots of if/else weaved into the generator templates

@goetzrobin
Copy link
Member Author

@brandonroberts I removed the features and open-source sections of each template.
I think you are right that they would be nice on the home page but add unnecessary code for the 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 😃

@brandonroberts brandonroberts changed the title significantly improve nx plugin and add tRPC support feat(platform): improve nx plugin and add tRPC support May 11, 2023
@brandonroberts brandonroberts merged commit 5a25787 into main May 11, 2023
@brandonroberts brandonroberts deleted the improve-nx-plugin-pt-2 branch May 11, 2023 22:09
Villanuevand pushed a commit to Villanuevand/analog that referenced this pull request Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants