{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/pub/issues/706","labels_url":"https://api.github.com/repos/dart-lang/pub/issues/706/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub/issues/706/comments","events_url":"https://api.github.com/repos/dart-lang/pub/issues/706/events","html_url":"https://github.com/dart-lang/pub/issues/706","id":85644316,"number":706,"title":"pub build option to include dart files","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/pub/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Fixed","name":"Fixed","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-06-05T22:12:29Z","updated_at":"2015-06-05T22:12:30Z","closed_at":null,"body":"<a href=\"https://github.com/rbishop-bah\"><img src=\"https://avatars.githubusercontent.com/u/3227777?v=3\" align=\"left\" width=\"96\" height=\"96\"hspace=\"10\"></img></a> **Issue by [rbishop-bah](https://github.com/rbishop-bah)**\n_Originally opened as dart-lang/sdk#14792_\n\n----\n\npub build currently leaves out all of the dart artifacts and supports the JS deployment case only.\n\nWhile we wait for dart2dart to mature, it'd be a useful enhancement to allow pub build to output (into the /build folder) both the JavaScript and Dart pieces and have the index.html use the right ones depending on the browser in which it's run (like we had with web_ui).\n\nThis would allow construction of WARs that can be deployed once and run in all browsers including Dartium.  This is often very useful for debugging problems.\n\nIf I understand correctly, that is an eventual goal of pub build once dart2dart is ready.  But using the unsquashed dart right now would really help."},"comment":{"url":"https://api.github.com/repos/dart-lang/pub/issues/comments/109457000","html_url":"https://github.com/dart-lang/pub/issues/706#issuecomment-109457000","issue_url":"https://api.github.com/repos/dart-lang/pub/issues/706","id":109457000,"user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T22:12:30Z","updated_at":"2015-06-05T22:12:30Z","body":"<a href=\"https://github.com/nex3\"><img src=\"https://avatars.githubusercontent.com/u/188?v=3\" align=\"left\" width=\"48\" height=\"48\"hspace=\"10\"></img></a> **Comment by [nex3](https://github.com/nex3)**\n\n----\n\nThe correct way to do this for now is probably to have the removal of the Dart files be based on the mode, and to only remove them in deploy mode. That will make \"pub build --mode=debug\" preserve the Dart files.\n______\n*Added this to the [Later](../milestones/Later) milestone.*\n*Added [Area-Pub](../labels/Area-Pub), [Triaged](../labels/Triaged) labels.*\n"}}