Skip to content
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

Addon-docs: Add Controls argument autodetection for svelte #12347

Merged
merged 16 commits into from
Sep 2, 2020
Merged

Addon-docs: Add Controls argument autodetection for svelte #12347

merged 16 commits into from
Sep 2, 2020

Conversation

BlackFenix2
Copy link
Contributor

@BlackFenix2 BlackFenix2 commented Sep 1, 2020

Issue:

What I did

I have added autodetection capabilities for svelte components. i have create a custom webpack loader using sveltedoc-parser and populating the generated document into the ArgTypes.

How to test

run the svelte sample under examples/svelte-kitchen-sink and omit custom args

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome -- pretty clean & works great! 💯 A few questions & requested changes.

addons/docs/package.json Outdated Show resolved Hide resolved
addons/docs/src/frameworks/svelte/HOC.svelte Show resolved Hide resolved
addons/docs/src/frameworks/svelte/svelte-docgen-loader.ts Outdated Show resolved Hide resolved
addons/docs/src/frameworks/svelte/extractArgTypes.ts Outdated Show resolved Hide resolved
addons/docs/src/frameworks/svelte/config.ts Show resolved Hide resolved
@BlackFenix2
Copy link
Contributor Author

my mistake, i commited a snapshot test versus an unit test.

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work @BlackFenix2! Bravo!!!! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants