{"action":"created","issue":{"url":"https://api.github.com/repos/claroline/Distribution/issues/122","repository_url":"https://api.github.com/repos/claroline/Distribution","labels_url":"https://api.github.com/repos/claroline/Distribution/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/claroline/Distribution/issues/122/comments","events_url":"https://api.github.com/repos/claroline/Distribution/issues/122/events","html_url":"https://github.com/claroline/Distribution/issues/122","id":147347986,"number":122,"title":"[CoreBundle] Webpack for plugin creation.","user":{"login":"ngodfraind","id":1397430,"avatar_url":"https://avatars.githubusercontent.com/u/1397430?v=3","gravatar_id":"","url":"https://api.github.com/users/ngodfraind","html_url":"https://github.com/ngodfraind","followers_url":"https://api.github.com/users/ngodfraind/followers","following_url":"https://api.github.com/users/ngodfraind/following{/other_user}","gists_url":"https://api.github.com/users/ngodfraind/gists{/gist_id}","starred_url":"https://api.github.com/users/ngodfraind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngodfraind/subscriptions","organizations_url":"https://api.github.com/users/ngodfraind/orgs","repos_url":"https://api.github.com/users/ngodfraind/repos","events_url":"https://api.github.com/users/ngodfraind/events{/privacy}","received_events_url":"https://api.github.com/users/ngodfraind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-11T08:07:57Z","updated_at":"2016-04-11T08:24:43Z","closed_at":null,"body":"When creating a new plugin, webpack won't read the assets.json file unless you add it in the installed.json file.\r\n\r\nWe should either:\r\n- Add some documentation to warn the users to do it manually if it doesn't work\r\n- Use the bundles.ini file (because the plugin must be loaded here anyway).\r\n- Use the composer.json plugin file (because it should be there if the plugin is ready)\r\n- Fix the claroline:plugin:create command and ask developpers to use it instead of creating the structure manually (because we can edit the installed.json file here).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/claroline/Distribution/issues/comments/208224739","html_url":"https://github.com/claroline/Distribution/issues/122#issuecomment-208224739","issue_url":"https://api.github.com/repos/claroline/Distribution/issues/122","id":208224739,"user":{"login":"stefk","id":880921,"avatar_url":"https://avatars.githubusercontent.com/u/880921?v=3","gravatar_id":"","url":"https://api.github.com/users/stefk","html_url":"https://github.com/stefk","followers_url":"https://api.github.com/users/stefk/followers","following_url":"https://api.github.com/users/stefk/following{/other_user}","gists_url":"https://api.github.com/users/stefk/gists{/gist_id}","starred_url":"https://api.github.com/users/stefk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefk/subscriptions","organizations_url":"https://api.github.com/users/stefk/orgs","repos_url":"https://api.github.com/users/stefk/repos","events_url":"https://api.github.com/users/stefk/events{/privacy}","received_events_url":"https://api.github.com/users/stefk/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T08:24:43Z","updated_at":"2016-04-11T08:24:43Z","body":"2 and 3 are doable, but imply also inspecting irrelevant bundles/packages. 4 is ok. Best IMO would be to extract registering logic (bundles.ini + autoload + installed.json) into a dedicated dev class, which could be used by both claroline:plugin:create and a future claroline:plugin:register (as there are cases where you just need registration)."}}