storyblok-nuxt icon indicating copy to clipboard operation
storyblok-nuxt copied to clipboard

@next Proposal: Adapt to new Nuxt module-builder

Open alvarosabu opened this issue 2 years ago • 3 comments

Hey there,

Nuxt3 released recently a module-builder, which has been used on the next version of several modules (Nuxt lazyload and nuxt-algolia) I will recommend we upgrade the current code to the standard format.

Benefits

  • Reduce dependencies and compatibility issues with nuxt3 (I talked with DanielRoe, things should be more stable with this module-builder)
  • Typescript support right away
  • Standard way of creating modules, easier for contributing

If you agree I can prepare a PR with the migration.

Cheers

alvarosabu avatar Feb 22 '22 08:02 alvarosabu

I completely agree with Alvaro.

Module Builder seems to be much more stable right now as many new modules are being created using it (Algolia, Partytown, Harlem, Prismic, etc). I would recommend rewriting the module using the module builder pattern to avoid current issues with the module.

If you need any help I will be glad to help with the migration :)

Baroshem avatar Feb 22 '22 08:02 Baroshem

Hey @alvarosabu! Thanks a lot for opening this issue, @Baroshem also suggested it, and feels like the way to go. Actually, that's something I worked on already in branch https://github.com/storyblok/storyblok-nuxt/tree/feat/use-storyblok-js.

Right now we're restructuring the underlying SDKs and likely we'll have a separate repo for nuxt 3 SDK. I'll keep you posted soon :)

alexjoverm avatar Feb 22 '22 10:02 alexjoverm

That sounds great, let me know if u need help. Cheers

alvarosabu avatar Feb 22 '22 13:02 alvarosabu

As this is already implemented I will close this issue folks @alvarosabu @Baroshem 🚀

Dawntraoz avatar Sep 20 '22 14:09 Dawntraoz