-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
svelte wrapper #51
Comments
Hey there, @demetrius-mp! Thanks so much for putting this together. 🎉 I'm always interested in making it easier to use |
sure! just let me study a bit more on how packaging works with svelte, because if i simply place my repo under a import InkMde from 'ink-mde/svelte' |
im having some problems: I was checking your To keep a godd developer experience both for the users of the package, and the people who will maintain the svelte component, the best way of creating the package would be to use svelte kit packaging. Basically, this will handle separating the types (on a .svelte.d.ts) file, from the component itself, which allows for both TS and JS users to use the component, while the maintainer can work on a single file that glues svelte and typescript code. However, i think there is no way to put the sveltekit project under a One solution i can think of would be to either turn this into a monorepo with would have the The other solution would be to keep it in a separate repo. If you want to do this way, i could transfer ownership of my repo to you. |
So, Vue does have its own method of providing prop types, but I am actually using TypeScript to generate the types for the Vue component. As for SvelteKit, you can actually drop the entire project into its own folder and then use a conditional export to help Node resolve the correct path in the top-level package.json. |
hmm, i see just to be sure: this what you are asking me to do is to remove it from the gitignore, so that it can be seen accessible after this, i need to add the conditional export to the is that it? geez im sorry for such long texts, ive never did anything related to packaging before |
That sounds right. Vite currently creates a
This step is actually unnecessary. We don't want to keep the build in version control. Instead, the build step will run as a part of the deploy process. The current build command runs for both the standalone package ( Don't worry if it's confusing. This type of packaging is definitely a bit more complicated than most you'd find out there. If you are still open to submitting a PR, I'm happy to either commit changes related to packaging or leave a review with more detailed instructions. Either way, I really appreciate your efforts on this! |
oooh now that you mentioned about the extra im going to open a PR adding the also, ill add a readme section showing its usage, but you can remove it if you want |
This is now available in |
i dont know if you have any interest on a svelte wrapper for this component, but i have created the following ink-mde-svelte package. Also published on npm.
if you want to move it to this repo, or move it to your account, i'd be happy to help.
The text was updated successfully, but these errors were encountered: