{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/155","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/155/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/155/events","html_url":"https://github.com/jspm/jspm-cli/issues/155","id":44569410,"number":155,"title":"Private bundling","user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-01T14:26:52Z","updated_at":"2015-01-13T10:06:29Z","closed_at":"2015-01-13T10:06:29Z","body":"If I write a module and structure it like - \r\n\r\n```\r\n  - app.js\r\n  - lib/utila.js\r\n  - lib/utilb.js\r\n```\r\n\r\nWhere `app` depends on `./lib/utila` and `./lib/utilb`, and I know that no user will ever want to require `lib/utila` or `lib/utilb` on their own from this package - then we can say that these modules are __private modules__.\r\n\r\nIn such a scenario it can make sense to want to build `app` into a single file containing its private libs, in such a way that any external dependencies remain external.\r\n\r\nIf we reduce this scenario to the ES6-module case only, we can apply the square es6 module transpiler here to get a nice reduction of the code. Similarly AMD-only and CommonJS-only can be handled in line with existing processes today.\r\n\r\nThis could potentially look something like - \r\n\r\n```javascript\r\njspm bundle-pvt app app-build.js\r\n```\r\n\r\nExclusions and inclusions would not apply to private bundles.\r\n\r\nThis is effectively the build that Ember CLI does.\r\n\r\nThe worry with this is if we're entering a feature-creep territory where these features are obscuring best-practises. I wouldn't heavily document such a feature for example."},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/69721662","html_url":"https://github.com/jspm/jspm-cli/issues/155#issuecomment-69721662","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/155","id":69721662,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T10:06:29Z","updated_at":"2015-01-13T10:06:29Z","body":"Closing as there has been no demand for this yet."}}