{"action":"closed","issue":{"url":"https://api.github.com/repos/zalando/tailor/issues/121","repository_url":"https://api.github.com/repos/zalando/tailor","labels_url":"https://api.github.com/repos/zalando/tailor/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/zalando/tailor/issues/121/comments","events_url":"https://api.github.com/repos/zalando/tailor/issues/121/events","html_url":"https://github.com/zalando/tailor/issues/121","id":205428061,"number":121,"title":"Express fragment dependencies?","user":{"login":"jmaicher","id":412182,"avatar_url":"https://avatars.githubusercontent.com/u/412182?v=3","gravatar_id":"","url":"https://api.github.com/users/jmaicher","html_url":"https://github.com/jmaicher","followers_url":"https://api.github.com/users/jmaicher/followers","following_url":"https://api.github.com/users/jmaicher/following{/other_user}","gists_url":"https://api.github.com/users/jmaicher/gists{/gist_id}","starred_url":"https://api.github.com/users/jmaicher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmaicher/subscriptions","organizations_url":"https://api.github.com/users/jmaicher/orgs","repos_url":"https://api.github.com/users/jmaicher/repos","events_url":"https://api.github.com/users/jmaicher/events{/privacy}","received_events_url":"https://api.github.com/users/jmaicher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-02-05T14:22:04Z","updated_at":"2017-02-07T11:08:21Z","closed_at":"2017-02-07T11:08:21Z","body":"We have a shell fragment (header + sidebar) and one or many content fragments (mostly a single SPA). Our plan for the shell is to provide certain services to the content fragments via a client-side JavaScript API (e.g. to interact with the sidebar menu or the header search). For that to work, we somehow need to express fragment dependencies or ensure otherwise that the shell bundle is evaluated before any content fragment bundle.\r\n\r\nCurrently, we implemented this through RequireJS by letting the shell fragment define an AMD module inside of the fragment template, which depends on the shell bundle that is resolved via tailor. I outlined the solution in a gist [1].\r\n\r\nIs there any better way to achieve this?\r\n\r\n[1] https://gist.github.com/jmaicher/f696b510008adadd94d2b7fbb35c8966"}}
{"actor":{"display_login":"vigneshshanmugam"}}