{"action":"created","issue":{"url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/71","labels_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/71/comments","events_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/71/events","html_url":"https://github.com/greensock/GreenSock-JS/issues/71","id":44969045,"number":71,"title":"How to access easings / TimelineMax from NPM package (or from TweenMax)?","user":{"login":"pakastin","id":1475902,"avatar_url":"https://avatars.githubusercontent.com/u/1475902?v=3","gravatar_id":"","url":"https://api.github.com/users/pakastin","html_url":"https://github.com/pakastin","followers_url":"https://api.github.com/users/pakastin/followers","following_url":"https://api.github.com/users/pakastin/following{/other_user}","gists_url":"https://api.github.com/users/pakastin/gists{/gist_id}","starred_url":"https://api.github.com/users/pakastin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pakastin/subscriptions","organizations_url":"https://api.github.com/users/pakastin/orgs","repos_url":"https://api.github.com/users/pakastin/repos","events_url":"https://api.github.com/users/pakastin/events{/privacy}","received_events_url":"https://api.github.com/users/pakastin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-10-06T10:33:14Z","updated_at":"2015-11-22T03:50:36Z","closed_at":"2014-10-16T03:50:36Z","body":"The NPM package exports TweenMax directly – how can I access TimelineMax, easings, etc inside TweenMax?\r\n\r\nNow it is like:\r\nvar TweenMax = require('gsap')\r\nvar TimelineMax = ???\r\nvar Linear = ???\r\nvar Power1 = ???\r\n\r\nShould it be more like this:\r\n\r\nvar TweenMax = require('gsap').TweenMax\r\nvar TimelineMax = require('gsap').TimelineMax\r\nvar ease = require('gsap').ease\r\nvar Linear = ease.Linear\r\nvar Power1 = ease.Power1\r\n...\r\n\r\nI know that I can access for example require('gsap/uncompressed/easing/EasePack') and require('gsap/uncompressed/TimelineMax') but then those packages are included multiple times and the produced Javascript file gets really large without any good reason.."},"comment":{"url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/comments/158705918","html_url":"https://github.com/greensock/GreenSock-JS/issues/71#issuecomment-158705918","issue_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/71","id":158705918,"user":{"login":"jackdoyle","id":2389714,"avatar_url":"https://avatars.githubusercontent.com/u/2389714?v=3","gravatar_id":"","url":"https://api.github.com/users/jackdoyle","html_url":"https://github.com/jackdoyle","followers_url":"https://api.github.com/users/jackdoyle/followers","following_url":"https://api.github.com/users/jackdoyle/following{/other_user}","gists_url":"https://api.github.com/users/jackdoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/jackdoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackdoyle/subscriptions","organizations_url":"https://api.github.com/users/jackdoyle/orgs","repos_url":"https://api.github.com/users/jackdoyle/repos","events_url":"https://api.github.com/users/jackdoyle/events{/privacy}","received_events_url":"https://api.github.com/users/jackdoyle/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T03:50:36Z","updated_at":"2015-11-22T03:50:36Z","body":"Yeah, I totally hear you and we're hoping to head that direction. Just a matter of time (I wish I had more of that!) Gotta learn the ins and outs of that type of system. If anyone has good learning resources, let me know. I don't want to run into a situation where it adds a bunch of extra scaffolding code to the deploy files. "}}