GSAP Nuxt Module - Packages Installation Problem
Hello!
I recently created the GSAP module that you can find here: https://github.com/LucaArgentieri/gsap-nuxt-module
Now I would like to add the possibility of using the gsap club plugins for all users who have purchased the license and have the token.
The difficulty I’m having is to install a different package according to the user’s role, here the documentation: https://gsap.com/docs/v3/Installation/guides/Netlify
What I’ve done is this:
Created .npmrc:
I have added the possibility to choose your role of gsap
And I created a function to install a different package depending on the role :
Is there a better way to manage this installation?
Branch: https://github.com/LucaArgentieri/gsap-nuxt-module/tree/fe/gsap-club-plugins
I recently created the GSAP module that you can find here: https://github.com/LucaArgentieri/gsap-nuxt-module
Now I would like to add the possibility of using the gsap club plugins for all users who have purchased the license and have the token.
The difficulty I’m having is to install a different package according to the user’s role, here the documentation: https://gsap.com/docs/v3/Installation/guides/Netlify
What I’ve done is this:
Created .npmrc:
I have added the possibility to choose your role of gsap
And I created a function to install a different package depending on the role :
Is there a better way to manage this installation?
Branch: https://github.com/LucaArgentieri/gsap-nuxt-module/tree/fe/gsap-club-plugins
GitHub
GSAP integration for Nuxt. Contribute to LucaArgentieri/gsap-nuxt-module development by creating an account on GitHub.
GitHub
GSAP integration for Nuxt. Contribute to LucaArgentieri/gsap-nuxt-module development by creating an account on GitHub.

