Jump to content
Search Community

Adding plugin dependency

Guest VonJungingen
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Guest VonJungingen

Hi there - Quick question. While I can pull the TweenMax with bower I'm kinda stumped on how to configure my yeoman project to add the ScrollTo plugin as dependency. Anyone?

Link to comment
Share on other sites

Guest VonJungingen

Ok so we use automatic deployment on our projects. So lets say I want to have TweenMax with ScrollTo plugin during automatic deploy grunt-build is called which concatenates all JS files and update sources in your project. Yeoman uses bower to import the sources but the bower for TweenMax have only TweenMax as a main file and no dependencies there. Ok I could edit that but we deploy from the repository so every time build is made clean TweenMax bower is downloaded. I thought there would be something like bower gsap-plugin-scrollTo this way the plugin would be added automatically to the project but it doesn't.

Link to comment
Share on other sites

You can setup a task to do this (specify certain files), and there are several packages out there that will help with this. Just do a search for some grunt bower packages. I don't use grunt anymore so I can't really recommend one, but these are the first ones I found.

 

https://www.npmjs.com/package/grunt-bower

https://www.npmjs.com/package/grunt-bower-task

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...