{"action":"opened","issue":{"url":"https://api.github.com/repos/sveltejs/svelte/issues/397","repository_url":"https://api.github.com/repos/sveltejs/svelte","labels_url":"https://api.github.com/repos/sveltejs/svelte/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/sveltejs/svelte/issues/397/comments","events_url":"https://api.github.com/repos/sveltejs/svelte/issues/397/events","html_url":"https://github.com/sveltejs/svelte/issues/397","id":215295729,"number":397,"title":"Question: Best practice for publishing a svelte-based npm package?","user":{"login":"bestguy","id":405608,"avatar_url":"https://avatars1.githubusercontent.com/u/405608?v=3","gravatar_id":"","url":"https://api.github.com/users/bestguy","html_url":"https://github.com/bestguy","followers_url":"https://api.github.com/users/bestguy/followers","following_url":"https://api.github.com/users/bestguy/following{/other_user}","gists_url":"https://api.github.com/users/bestguy/gists{/gist_id}","starred_url":"https://api.github.com/users/bestguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestguy/subscriptions","organizations_url":"https://api.github.com/users/bestguy/orgs","repos_url":"https://api.github.com/users/bestguy/repos","events_url":"https://api.github.com/users/bestguy/events{/privacy}","received_events_url":"https://api.github.com/users/bestguy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-19T21:18:42Z","updated_at":"2017-03-19T21:18:42Z","closed_at":null,"body":"I'm working on a collection of Svelte-based components for use in Svelte apps, but am unsure whether it's better to:\r\n\r\n1) Transpile the components using rollup (or webpack) to a single JS file\r\n2) Package the components into individual js files using svelte-cli, or\r\n3) Package the svelte .html files with no transpiling\r\n\r\nEnd goal is to (only) use these within Svelte apps, and import like so:\r\n\r\n```js\r\nimport { Alpha, Bravo, Charlie, Delta } from 'my components';\r\n\r\nexport default {\r\n  components: {\r\n    Alpha,\r\n    Bravo,\r\n    Charlie,\r\n    Delta\r\n  }\r\n  ...\r\n```\r\n\r\nAny guidance you can recommend here?"}}
{"actor":{"display_login":"bestguy"}}