Closed huang-julien closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
scripts-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 11, 2024 11:23am |
scripts-playground | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 11, 2024 11:23am |
would love a follow up with your comment: "We can also add a version check from npm later." That'll be great to show a message to the user, if they're using an outdated version of tpc
I think this is good for a first implementation. I'll probably open another PR for internal DX to ease the developement with TPC.
I'm still not convinced TPC in its current format will be worth maintaining with Nuxt Scripts in the long term but I'm happy to move this forward for the time being once comments are addressed.
Either way this is a nice solution to avoiding the runtime of TPC, great work @huang-julien :clap:
This PR re-introduce TPC as dependency and not type provider. TPC will be used to generate all composables (and components if possible).
Composables and components will be generated at USER build-time and not at @nuxt/scripts.
steps:
optionnal: