You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vue-component-meta is a tool that enables the extraction of metadata, such as props, slots, events, etc., from a file, regardless of whether the file is a component or not. While .vue files are compiled as components, .js and .ts files may not export any component.
In a Storybook application, vue-component-meta can be useful for extracting metadata from component files. However, the current implementation only allows filtering of .vue files, assuming they are components. To extract metadata from .ts, .js, .tsx, and .jsx files, a new API is needed to filter only the files that are components (SFC, options API components, functional components, etc.).
Similarly, in other contexts such as a UI library, vue-component-meta can be useful for code analytics, such as counting the number of components and their types. The new API that filters only component files would be beneficial in this context as well. Overall, vue-component-meta has several potential use cases where the ability to extract metadata from a variety of file types is necessary.
The text was updated successfully, but these errors were encountered:
chakAs3
changed the title
[Feature request] api that accepts a file ( .vue ,.ts, .js, tsx...) and return if it is a component or no
[Feature request] api that accepts a file ( .vue, .ts, .js, .tsx...) and return if it is a component or no.
May 10, 2023
vue-component-meta is a tool that enables the extraction of metadata, such as props, slots, events, etc., from a file, regardless of whether the file is a component or not. While .vue files are compiled as components, .js and .ts files may not export any component.
In a Storybook application, vue-component-meta can be useful for extracting metadata from component files. However, the current implementation only allows filtering of .vue files, assuming they are components. To extract metadata from .ts, .js, .tsx, and .jsx files, a new API is needed to filter only the files that are components (SFC, options API components, functional components, etc.).
Similarly, in other contexts such as a UI library, vue-component-meta can be useful for code analytics, such as counting the number of components and their types. The new API that filters only component files would be beneficial in this context as well. Overall, vue-component-meta has several potential use cases where the ability to extract metadata from a variety of file types is necessary.
The text was updated successfully, but these errors were encountered: