{"action":"created","issue":{"url":"https://api.github.com/repos/zikula/core/issues/2914","repository_url":"https://api.github.com/repos/zikula/core","labels_url":"https://api.github.com/repos/zikula/core/issues/2914/labels{/name}","comments_url":"https://api.github.com/repos/zikula/core/issues/2914/comments","events_url":"https://api.github.com/repos/zikula/core/issues/2914/events","html_url":"https://github.com/zikula/core/issues/2914","id":164591476,"number":2914,"title":"require.config.js is not built properly.","user":{"login":"Kaik","id":966910,"avatar_url":"https://avatars.githubusercontent.com/u/966910?v=3","gravatar_id":"","url":"https://api.github.com/users/Kaik","html_url":"https://github.com/Kaik","followers_url":"https://api.github.com/users/Kaik/followers","following_url":"https://api.github.com/users/Kaik/following{/other_user}","gists_url":"https://api.github.com/users/Kaik/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaik/subscriptions","organizations_url":"https://api.github.com/users/Kaik/orgs","repos_url":"https://api.github.com/users/Kaik/repos","events_url":"https://api.github.com/users/Kaik/events{/privacy}","received_events_url":"https://api.github.com/users/Kaik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zikula/core/labels/Bug","name":"Bug","color":"e102d8"},{"url":"https://api.github.com/repos/zikula/core/labels/ZCS","name":"ZCS","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/zikula/core/milestones/20","html_url":"https://github.com/zikula/core/milestones/1.4.3","labels_url":"https://api.github.com/repos/zikula/core/milestones/20/labels","id":1572760,"number":20,"title":"1.4.3","description":"Third service release for 1.4.x series","creator":{"login":"craigh","id":350048,"avatar_url":"https://avatars.githubusercontent.com/u/350048?v=3","gravatar_id":"","url":"https://api.github.com/users/craigh","html_url":"https://github.com/craigh","followers_url":"https://api.github.com/users/craigh/followers","following_url":"https://api.github.com/users/craigh/following{/other_user}","gists_url":"https://api.github.com/users/craigh/gists{/gist_id}","starred_url":"https://api.github.com/users/craigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigh/subscriptions","organizations_url":"https://api.github.com/users/craigh/orgs","repos_url":"https://api.github.com/users/craigh/repos","events_url":"https://api.github.com/users/craigh/events{/privacy}","received_events_url":"https://api.github.com/users/craigh/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":117,"state":"open","created_at":"2016-02-09T15:30:01Z","updated_at":"2016-08-19T17:49:57Z","due_on":"2016-08-30T22:00:00Z","closed_at":null},"comments":13,"created_at":"2016-07-08T18:41:05Z","updated_at":"2016-08-19T17:53:34Z","closed_at":"2016-08-19T17:31:36Z","body":"| Q                 | A\r\n| ----------------- | ---\r\n| Zikula Version    | 1.4.x\r\n| PHP Version       | 5.6\r\n\r\n### Expected behavior\r\nProper baseUrl to components in require.config.js\r\n\r\n### Actual behavior\r\nbaseUrl is set to \"components\" (default) \r\n\r\n### Steps to reproduce\r\nInstall Zikula and try to use require.js with require.config.js\r\n```\r\n    <script src=\"{{ asset('require.js') }}\"></script>\r\n    <script src=\"{{ asset('require.config.js') }}\"></script> \r\n    <script>\r\n        require(['jquery'\r\n        ], function ($) {\r\n        }\r\n        );\r\n    </script>  \r\n```\r\n\r\nI have tried to use default require.js config created by composer-installers which is present in /web folder but baseUrl to components is wrong this is mostly because it is not configured in our composer.json or should be configured in different place more information's here https://github.com/RobLoach/component-installer#base-url\r\nChanging baseUrl simple to web does not solve this problem as it uses \"current url\" as part before /web so \"http://www.domain.com/en/whatever/web\" the only way it works is to use ``` Zikula.Config.baseURL + \"web\" ```\r\n\r\nThe second attempt was to use require-buld.js but something was wrong when using installed Backbone\r\n\r\nI have ended up using custom require config inside my module main.js file\r\n```\r\n// Require.js allows us to configure shortcut alias\r\nrequire.config({\r\n    // The shim config allows us to configure dependencies for\r\n    // scripts that do not call define() to register a module\r\n    shim: {\r\n        underscore: {\r\n            exports: '_'\r\n        },\r\n        backbone: {\r\n            deps: [\r\n                'underscore',\r\n                'jquery'\r\n            ],\r\n            exports: 'Backbone'\r\n        }\r\n    },\r\n    paths: {\r\n        jquery: Zikula.Config.baseURL + 'web/jquery/jquery',\r\n        underscore: Zikula.Config.baseURL + 'web/underscore/underscore',\r\n        backbone: Zikula.Config.baseURL + 'web/backbone/backbone'\r\n    }\r\n});\r\n```\r\nI will try to investigate it further. I'm leaving this issue here for now maybe you have idea how can we solve this."},"comment":{"url":"https://api.github.com/repos/zikula/core/issues/comments/241088098","html_url":"https://github.com/zikula/core/issues/2914#issuecomment-241088098","issue_url":"https://api.github.com/repos/zikula/core/issues/2914","id":241088098,"user":{"login":"craigh","id":350048,"avatar_url":"https://avatars.githubusercontent.com/u/350048?v=3","gravatar_id":"","url":"https://api.github.com/users/craigh","html_url":"https://github.com/craigh","followers_url":"https://api.github.com/users/craigh/followers","following_url":"https://api.github.com/users/craigh/following{/other_user}","gists_url":"https://api.github.com/users/craigh/gists{/gist_id}","starred_url":"https://api.github.com/users/craigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigh/subscriptions","organizations_url":"https://api.github.com/users/craigh/orgs","repos_url":"https://api.github.com/users/craigh/repos","events_url":"https://api.github.com/users/craigh/events{/privacy}","received_events_url":"https://api.github.com/users/craigh/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T17:53:34Z","updated_at":"2016-08-19T17:53:34Z","body":"nice work @Kaik ! thanks!"}}
{"actor":{"display_login":"craigh"}}