{"action":"opened","number":134,"pull_request":{"url":"https://api.github.com/repos/systemjs/builder/pulls/134","id":33174501,"html_url":"https://github.com/systemjs/builder/pull/134","diff_url":"https://github.com/systemjs/builder/pull/134.diff","patch_url":"https://github.com/systemjs/builder/pull/134.patch","issue_url":"https://api.github.com/repos/systemjs/builder/issues/134","number":134,"state":"open","locked":false,"title":"#51 - Optimization build function","user":{"login":"markstickley","id":83684,"avatar_url":"https://avatars.githubusercontent.com/u/83684?v=3","gravatar_id":"","url":"https://api.github.com/users/markstickley","html_url":"https://github.com/markstickley","followers_url":"https://api.github.com/users/markstickley/followers","following_url":"https://api.github.com/users/markstickley/following{/other_user}","gists_url":"https://api.github.com/users/markstickley/gists{/gist_id}","starred_url":"https://api.github.com/users/markstickley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstickley/subscriptions","organizations_url":"https://api.github.com/users/markstickley/orgs","repos_url":"https://api.github.com/users/markstickley/repos","events_url":"https://api.github.com/users/markstickley/events{/privacy}","received_events_url":"https://api.github.com/users/markstickley/received_events","type":"User","site_admin":false},"body":"Just wanted to get this in there and under your eyeballs! Let me know what you think.\r\n\r\nThe optimization function is included in the systemjs-builder package. It is not the most hands-off optimization approach there is but a good one, I think. I can go through it if you like. It's not set as a default if you don't specify a different function - you always have to specify.\r\n\r\nThere are tests for Builder.prototype.optimizeBuild. The tests for the optimization function are in progress, as are instruction for use in the README... look forward to future pull requests for those!\r\n\r\nIt currently writes a config.js file to the output directory which needs to be added to the end of the production config. I know this is something currently under review or changing in some way so I didn't spend too much time on that bit. Happy to take suggestions.\r\n\r\nLooking forward to hearing any feedback you have. Thanks!","created_at":"2015-04-13T15:30:39Z","updated_at":"2015-04-13T15:30:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/systemjs/builder/pulls/134/commits","review_comments_url":"https://api.github.com/repos/systemjs/builder/pulls/134/comments","review_comment_url":"https://api.github.com/repos/systemjs/builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/systemjs/builder/issues/134/comments","statuses_url":"https://api.github.com/repos/systemjs/builder/statuses/f1d18aed14f03ada72d16316ea51b0b4f4df1f1a","head":{"label":"markstickley:master","ref":"master","sha":"f1d18aed14f03ada72d16316ea51b0b4f4df1f1a","user":{"login":"markstickley","id":83684,"avatar_url":"https://avatars.githubusercontent.com/u/83684?v=3","gravatar_id":"","url":"https://api.github.com/users/markstickley","html_url":"https://github.com/markstickley","followers_url":"https://api.github.com/users/markstickley/followers","following_url":"https://api.github.com/users/markstickley/following{/other_user}","gists_url":"https://api.github.com/users/markstickley/gists{/gist_id}","starred_url":"https://api.github.com/users/markstickley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstickley/subscriptions","organizations_url":"https://api.github.com/users/markstickley/orgs","repos_url":"https://api.github.com/users/markstickley/repos","events_url":"https://api.github.com/users/markstickley/events{/privacy}","received_events_url":"https://api.github.com/users/markstickley/received_events","type":"User","site_admin":false},"repo":{"id":29684657,"name":"builder","full_name":"markstickley/builder","owner":{"login":"markstickley","id":83684,"avatar_url":"https://avatars.githubusercontent.com/u/83684?v=3","gravatar_id":"","url":"https://api.github.com/users/markstickley","html_url":"https://github.com/markstickley","followers_url":"https://api.github.com/users/markstickley/followers","following_url":"https://api.github.com/users/markstickley/following{/other_user}","gists_url":"https://api.github.com/users/markstickley/gists{/gist_id}","starred_url":"https://api.github.com/users/markstickley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstickley/subscriptions","organizations_url":"https://api.github.com/users/markstickley/orgs","repos_url":"https://api.github.com/users/markstickley/repos","events_url":"https://api.github.com/users/markstickley/events{/privacy}","received_events_url":"https://api.github.com/users/markstickley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markstickley/builder","description":"SystemJS build tool","fork":true,"url":"https://api.github.com/repos/markstickley/builder","forks_url":"https://api.github.com/repos/markstickley/builder/forks","keys_url":"https://api.github.com/repos/markstickley/builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markstickley/builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markstickley/builder/teams","hooks_url":"https://api.github.com/repos/markstickley/builder/hooks","issue_events_url":"https://api.github.com/repos/markstickley/builder/issues/events{/number}","events_url":"https://api.github.com/repos/markstickley/builder/events","assignees_url":"https://api.github.com/repos/markstickley/builder/assignees{/user}","branches_url":"https://api.github.com/repos/markstickley/builder/branches{/branch}","tags_url":"https://api.github.com/repos/markstickley/builder/tags","blobs_url":"https://api.github.com/repos/markstickley/builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markstickley/builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markstickley/builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/markstickley/builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markstickley/builder/statuses/{sha}","languages_url":"https://api.github.com/repos/markstickley/builder/languages","stargazers_url":"https://api.github.com/repos/markstickley/builder/stargazers","contributors_url":"https://api.github.com/repos/markstickley/builder/contributors","subscribers_url":"https://api.github.com/repos/markstickley/builder/subscribers","subscription_url":"https://api.github.com/repos/markstickley/builder/subscription","commits_url":"https://api.github.com/repos/markstickley/builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/markstickley/builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/markstickley/builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/markstickley/builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/markstickley/builder/contents/{+path}","compare_url":"https://api.github.com/repos/markstickley/builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markstickley/builder/merges","archive_url":"https://api.github.com/repos/markstickley/builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markstickley/builder/downloads","issues_url":"https://api.github.com/repos/markstickley/builder/issues{/number}","pulls_url":"https://api.github.com/repos/markstickley/builder/pulls{/number}","milestones_url":"https://api.github.com/repos/markstickley/builder/milestones{/number}","notifications_url":"https://api.github.com/repos/markstickley/builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markstickley/builder/labels{/name}","releases_url":"https://api.github.com/repos/markstickley/builder/releases{/id}","created_at":"2015-01-22T15:15:42Z","updated_at":"2015-04-13T15:16:27Z","pushed_at":"2015-04-13T15:16:26Z","git_url":"git://github.com/markstickley/builder.git","ssh_url":"git@github.com:markstickley/builder.git","clone_url":"https://github.com/markstickley/builder.git","svn_url":"https://github.com/markstickley/builder","homepage":null,"size":385,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"systemjs:master","ref":"master","sha":"b2a052c8e783d9e566e9e8c3455e807af6b78fb0","user":{"login":"systemjs","id":6577368,"avatar_url":"https://avatars.githubusercontent.com/u/6577368?v=3","gravatar_id":"","url":"https://api.github.com/users/systemjs","html_url":"https://github.com/systemjs","followers_url":"https://api.github.com/users/systemjs/followers","following_url":"https://api.github.com/users/systemjs/following{/other_user}","gists_url":"https://api.github.com/users/systemjs/gists{/gist_id}","starred_url":"https://api.github.com/users/systemjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemjs/subscriptions","organizations_url":"https://api.github.com/users/systemjs/orgs","repos_url":"https://api.github.com/users/systemjs/repos","events_url":"https://api.github.com/users/systemjs/events{/privacy}","received_events_url":"https://api.github.com/users/systemjs/received_events","type":"Organization","site_admin":false},"repo":{"id":19843509,"name":"builder","full_name":"systemjs/builder","owner":{"login":"systemjs","id":6577368,"avatar_url":"https://avatars.githubusercontent.com/u/6577368?v=3","gravatar_id":"","url":"https://api.github.com/users/systemjs","html_url":"https://github.com/systemjs","followers_url":"https://api.github.com/users/systemjs/followers","following_url":"https://api.github.com/users/systemjs/following{/other_user}","gists_url":"https://api.github.com/users/systemjs/gists{/gist_id}","starred_url":"https://api.github.com/users/systemjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemjs/subscriptions","organizations_url":"https://api.github.com/users/systemjs/orgs","repos_url":"https://api.github.com/users/systemjs/repos","events_url":"https://api.github.com/users/systemjs/events{/privacy}","received_events_url":"https://api.github.com/users/systemjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/systemjs/builder","description":"SystemJS build tool","fork":false,"url":"https://api.github.com/repos/systemjs/builder","forks_url":"https://api.github.com/repos/systemjs/builder/forks","keys_url":"https://api.github.com/repos/systemjs/builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/systemjs/builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/systemjs/builder/teams","hooks_url":"https://api.github.com/repos/systemjs/builder/hooks","issue_events_url":"https://api.github.com/repos/systemjs/builder/issues/events{/number}","events_url":"https://api.github.com/repos/systemjs/builder/events","assignees_url":"https://api.github.com/repos/systemjs/builder/assignees{/user}","branches_url":"https://api.github.com/repos/systemjs/builder/branches{/branch}","tags_url":"https://api.github.com/repos/systemjs/builder/tags","blobs_url":"https://api.github.com/repos/systemjs/builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/systemjs/builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/systemjs/builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/systemjs/builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/systemjs/builder/statuses/{sha}","languages_url":"https://api.github.com/repos/systemjs/builder/languages","stargazers_url":"https://api.github.com/repos/systemjs/builder/stargazers","contributors_url":"https://api.github.com/repos/systemjs/builder/contributors","subscribers_url":"https://api.github.com/repos/systemjs/builder/subscribers","subscription_url":"https://api.github.com/repos/systemjs/builder/subscription","commits_url":"https://api.github.com/repos/systemjs/builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/systemjs/builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/systemjs/builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/systemjs/builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/systemjs/builder/contents/{+path}","compare_url":"https://api.github.com/repos/systemjs/builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/systemjs/builder/merges","archive_url":"https://api.github.com/repos/systemjs/builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/systemjs/builder/downloads","issues_url":"https://api.github.com/repos/systemjs/builder/issues{/number}","pulls_url":"https://api.github.com/repos/systemjs/builder/pulls{/number}","milestones_url":"https://api.github.com/repos/systemjs/builder/milestones{/number}","notifications_url":"https://api.github.com/repos/systemjs/builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/systemjs/builder/labels{/name}","releases_url":"https://api.github.com/repos/systemjs/builder/releases{/id}","created_at":"2014-05-16T03:26:53Z","updated_at":"2015-04-10T14:05:10Z","pushed_at":"2015-04-10T14:05:09Z","git_url":"git://github.com/systemjs/builder.git","ssh_url":"git@github.com:systemjs/builder.git","clone_url":"https://github.com/systemjs/builder.git","svn_url":"https://github.com/systemjs/builder","homepage":null,"size":1802,"stargazers_count":63,"watchers_count":63,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":14,"forks":19,"open_issues":14,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/systemjs/builder/pulls/134"},"html":{"href":"https://github.com/systemjs/builder/pull/134"},"issue":{"href":"https://api.github.com/repos/systemjs/builder/issues/134"},"comments":{"href":"https://api.github.com/repos/systemjs/builder/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/systemjs/builder/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/systemjs/builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/systemjs/builder/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/systemjs/builder/statuses/f1d18aed14f03ada72d16316ea51b0b4f4df1f1a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":10,"additions":1210,"deletions":16,"changed_files":18}}