{"action":"created","issue":{"url":"https://api.github.com/repos/8eecf0d2/netlify-local/issues/6","repository_url":"https://api.github.com/repos/8eecf0d2/netlify-local","labels_url":"https://api.github.com/repos/8eecf0d2/netlify-local/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/8eecf0d2/netlify-local/issues/6/comments","events_url":"https://api.github.com/repos/8eecf0d2/netlify-local/issues/6/events","html_url":"https://github.com/8eecf0d2/netlify-local/issues/6","id":370322868,"node_id":"MDU6SXNzdWUzNzAzMjI4Njg=","number":6,"title":"Expose API","user":{"login":"8eecf0d2","id":4452722,"node_id":"MDQ6VXNlcjQ0NTI3MjI=","avatar_url":"https://avatars0.githubusercontent.com/u/4452722?v=4","gravatar_id":"","url":"https://api.github.com/users/8eecf0d2","html_url":"https://github.com/8eecf0d2","followers_url":"https://api.github.com/users/8eecf0d2/followers","following_url":"https://api.github.com/users/8eecf0d2/following{/other_user}","gists_url":"https://api.github.com/users/8eecf0d2/gists{/gist_id}","starred_url":"https://api.github.com/users/8eecf0d2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8eecf0d2/subscriptions","organizations_url":"https://api.github.com/users/8eecf0d2/orgs","repos_url":"https://api.github.com/users/8eecf0d2/repos","events_url":"https://api.github.com/users/8eecf0d2/events{/privacy}","received_events_url":"https://api.github.com/users/8eecf0d2/received_events","type":"User","site_admin":false},"labels":[{"id":1091059940,"node_id":"MDU6TGFiZWwxMDkxMDU5OTQw","url":"https://api.github.com/repos/8eecf0d2/netlify-local/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":1092307345,"node_id":"MDU6TGFiZWwxMDkyMzA3MzQ1","url":"https://api.github.com/repos/8eecf0d2/netlify-local/labels/implemented","name":"implemented","color":"6fa9d6","default":false}],"state":"open","locked":false,"assignee":{"login":"8eecf0d2","id":4452722,"node_id":"MDQ6VXNlcjQ0NTI3MjI=","avatar_url":"https://avatars0.githubusercontent.com/u/4452722?v=4","gravatar_id":"","url":"https://api.github.com/users/8eecf0d2","html_url":"https://github.com/8eecf0d2","followers_url":"https://api.github.com/users/8eecf0d2/followers","following_url":"https://api.github.com/users/8eecf0d2/following{/other_user}","gists_url":"https://api.github.com/users/8eecf0d2/gists{/gist_id}","starred_url":"https://api.github.com/users/8eecf0d2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8eecf0d2/subscriptions","organizations_url":"https://api.github.com/users/8eecf0d2/orgs","repos_url":"https://api.github.com/users/8eecf0d2/repos","events_url":"https://api.github.com/users/8eecf0d2/events{/privacy}","received_events_url":"https://api.github.com/users/8eecf0d2/received_events","type":"User","site_admin":false},"assignees":[{"login":"8eecf0d2","id":4452722,"node_id":"MDQ6VXNlcjQ0NTI3MjI=","avatar_url":"https://avatars0.githubusercontent.com/u/4452722?v=4","gravatar_id":"","url":"https://api.github.com/users/8eecf0d2","html_url":"https://github.com/8eecf0d2","followers_url":"https://api.github.com/users/8eecf0d2/followers","following_url":"https://api.github.com/users/8eecf0d2/following{/other_user}","gists_url":"https://api.github.com/users/8eecf0d2/gists{/gist_id}","starred_url":"https://api.github.com/users/8eecf0d2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8eecf0d2/subscriptions","organizations_url":"https://api.github.com/users/8eecf0d2/orgs","repos_url":"https://api.github.com/users/8eecf0d2/repos","events_url":"https://api.github.com/users/8eecf0d2/events{/privacy}","received_events_url":"https://api.github.com/users/8eecf0d2/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-10-15T20:06:16Z","updated_at":"2018-10-16T09:29:56Z","closed_at":null,"author_association":"OWNER","body":"Would be handy to expose an API so test runners can start & stop the server, optionally with the build system.\r\n\r\n### Usage\r\n\r\n```ts\r\nimport { parseNetlifyConfig, parseWebpackConfig, Server, Webpack } from \"netlify-local\";\r\n\r\nconst netlifyConfig = parseNetlifyConfig(\"netlify.toml\");\r\nconst port = 3000;\r\nconst server = new Server(netlifyConfig, port);\r\nawait server.listen();\r\nawait server.close();\r\n\r\nconst webpackConfig = parseWebpackConfig(\"webpack.config.js\");\r\nconst webpack = new Webpack(webpackConfig);\r\nawait webpack.build();\r\nwebpack.watch();\r\n```\r\n\r\n### Methods\r\n\r\n#### Config\r\n- [x] `parseNetlifyConfig()`\r\n- [x] `parseWebpackConfig()`\r\n\r\n#### Server\r\n- [x] `constructor`\r\n- [x] `Server.listen()`\r\n- [x] `Server.close()`\r\n\r\n#### Webpack\r\n- [x] `constructor`\r\n- [x] `Webpack.build()`\r\n- [x] `Webpack.watch()`"},"comment":{"url":"https://api.github.com/repos/8eecf0d2/netlify-local/issues/comments/430168316","html_url":"https://github.com/8eecf0d2/netlify-local/issues/6#issuecomment-430168316","issue_url":"https://api.github.com/repos/8eecf0d2/netlify-local/issues/6","id":430168316,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDE2ODMxNg==","user":{"login":"8eecf0d2","id":4452722,"node_id":"MDQ6VXNlcjQ0NTI3MjI=","avatar_url":"https://avatars0.githubusercontent.com/u/4452722?v=4","gravatar_id":"","url":"https://api.github.com/users/8eecf0d2","html_url":"https://github.com/8eecf0d2","followers_url":"https://api.github.com/users/8eecf0d2/followers","following_url":"https://api.github.com/users/8eecf0d2/following{/other_user}","gists_url":"https://api.github.com/users/8eecf0d2/gists{/gist_id}","starred_url":"https://api.github.com/users/8eecf0d2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8eecf0d2/subscriptions","organizations_url":"https://api.github.com/users/8eecf0d2/orgs","repos_url":"https://api.github.com/users/8eecf0d2/repos","events_url":"https://api.github.com/users/8eecf0d2/events{/privacy}","received_events_url":"https://api.github.com/users/8eecf0d2/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T09:29:56Z","updated_at":"2018-10-16T09:29:56Z","author_association":"OWNER","body":"Unable to reproduce unfortunately, I'm guessing you've got some more exotic toml usage which `netlify-local` is not able to handle gracefully - although a `TypeError` seems odd..\r\n\r\nIf you're able to provide your `netlify.toml` or something with similar structure I'd be happy to test further."}}
{"actor":{"display_login":"8eecf0d2"}}