{"action":"created","issue":{"url":"https://api.github.com/repos/prettier/prettier/issues/3574","repository_url":"https://api.github.com/repos/prettier/prettier","labels_url":"https://api.github.com/repos/prettier/prettier/issues/3574/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier/issues/3574/comments","events_url":"https://api.github.com/repos/prettier/prettier/issues/3574/events","html_url":"https://github.com/prettier/prettier/issues/3574","id":284488331,"number":3574,"title":"Revamp Build System","user":{"login":"azz","id":1297597,"avatar_url":"https://avatars3.githubusercontent.com/u/1297597?v=4","gravatar_id":"","url":"https://api.github.com/users/azz","html_url":"https://github.com/azz","followers_url":"https://api.github.com/users/azz/followers","following_url":"https://api.github.com/users/azz/following{/other_user}","gists_url":"https://api.github.com/users/azz/gists{/gist_id}","starred_url":"https://api.github.com/users/azz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azz/subscriptions","organizations_url":"https://api.github.com/users/azz/orgs","repos_url":"https://api.github.com/users/azz/repos","events_url":"https://api.github.com/users/azz/events{/privacy}","received_events_url":"https://api.github.com/users/azz/received_events","type":"User","site_admin":false},"labels":[{"id":708021289,"url":"https://api.github.com/repos/prettier/prettier/labels/type:infra","name":"type:infra","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-12-26T03:41:25Z","updated_at":"2018-05-28T02:11:05Z","closed_at":"2018-05-28T00:29:16Z","author_association":"COLLABORATOR","body":"Prettier's build system is not pretty.\r\n\r\nWe support both install from both npm (`npm i prettier`) and GitHub (`npm i prettier/prettier`).\r\n\r\nThe structure of the npm production build is:\r\n\r\n```\r\nbin/\r\n  prettier.js\r\nindex.js\r\nthird-party.js\r\nparser-babylon.js\r\nparser-flow.js\r\nparser-....js\r\n```\r\n\r\nParsers are packaged separately because they can be expensive to load into the browser or Node.js runtime.\r\n\r\n#3296 also raises that it is non-trivial to load Prettier in the browser at all.\r\n\r\nWe use Rollup to create the bundles above. There is actually a copy of most of Prettier's source code in `index.js` and `bin/prettier.js` as they are separate entries without a common package.\r\n\r\nWe should look at a packages approach to creating bundles, and support UMD. "},"comment":{"url":"https://api.github.com/repos/prettier/prettier/issues/comments/392400811","html_url":"https://github.com/prettier/prettier/issues/3574#issuecomment-392400811","issue_url":"https://api.github.com/repos/prettier/prettier/issues/3574","id":392400811,"user":{"login":"vjeux","id":197597,"avatar_url":"https://avatars0.githubusercontent.com/u/197597?v=4","gravatar_id":"","url":"https://api.github.com/users/vjeux","html_url":"https://github.com/vjeux","followers_url":"https://api.github.com/users/vjeux/followers","following_url":"https://api.github.com/users/vjeux/following{/other_user}","gists_url":"https://api.github.com/users/vjeux/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeux/subscriptions","organizations_url":"https://api.github.com/users/vjeux/orgs","repos_url":"https://api.github.com/users/vjeux/repos","events_url":"https://api.github.com/users/vjeux/events{/privacy}","received_events_url":"https://api.github.com/users/vjeux/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T02:11:05Z","updated_at":"2018-05-28T02:11:05Z","author_association":"COLLABORATOR","body":"@duailibe btw I didn’t get the chance to say great job. Build systems are not super fun things to work on but they are so important :)"}}
{"actor":{"display_login":"vjeux"}}