{"action":"opened","issue":{"url":"https://api.github.com/repos/heiseonline/shariff/issues/74","labels_url":"https://api.github.com/repos/heiseonline/shariff/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/heiseonline/shariff/issues/74/comments","events_url":"https://api.github.com/repos/heiseonline/shariff/issues/74/events","html_url":"https://github.com/heiseonline/shariff/issues/74","id":81558863,"number":74,"title":"Extract non-library dependencies in slim.js","user":{"login":"martinheidegger","id":914122,"avatar_url":"https://avatars.githubusercontent.com/u/914122?v=3","gravatar_id":"","url":"https://api.github.com/users/martinheidegger","html_url":"https://github.com/martinheidegger","followers_url":"https://api.github.com/users/martinheidegger/followers","following_url":"https://api.github.com/users/martinheidegger/following{/other_user}","gists_url":"https://api.github.com/users/martinheidegger/gists{/gist_id}","starred_url":"https://api.github.com/users/martinheidegger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinheidegger/subscriptions","organizations_url":"https://api.github.com/users/martinheidegger/orgs","repos_url":"https://api.github.com/users/martinheidegger/repos","events_url":"https://api.github.com/users/martinheidegger/events{/privacy}","received_events_url":"https://api.github.com/users/martinheidegger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-27T18:07:46Z","updated_at":"2015-05-27T18:07:46Z","closed_at":null,"body":"NPM (and browserify) allows to specify files within a package like this:\r\n\r\n```JavaScript\r\nrequire('shariff/src/js/services/facebook')\r\n```\r\n\r\nIf the structure of this package was like this:\r\n\r\n```\r\nservices/facebook.js\r\nservices/...js\r\nindex.js\r\nslim.js\r\n```\r\n\r\nWhere slim.js contains the `shariff` logic without \"plugins\" It would be easily possible to \"custom build\" a shariff library with support for only facebook like this.\r\n\r\n```JavaScript\r\nvar Shariff = require('shariff')\r\nShariff(container, {\r\n   services: [require('shariff/services/facebook'), require('shariff/services/twitter')]\r\n});\r\n```"}}