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

✨ Scan 'pages' directory without marking files as components #56

Closed
kittisakLS opened this issue Nov 9, 2023 · 2 comments · Fixed by #58
Closed

✨ Scan 'pages' directory without marking files as components #56

kittisakLS opened this issue Nov 9, 2023 · 2 comments · Fixed by #58
Assignees

Comments

@kittisakLS
Copy link
Contributor

Description

In a Nuxt.js project, the pages directory is used to store all page components. While scanning the project for components, it's important to include the pages directory for comprehensive analysis. However, the issue arises when files within the pages directory are incorrectly marked as components.

Why is this feature needed? Is there a problem that you faced?

As it stands, the component scanner may mistakenly identify files within the pages directory as components. The component scanner should include the pages directory during the scanning process but should not mark the files within it as components. This ensures that page components are properly distinguished from other components in the project.

What is the solution you have in mind?

Adjust the component scanning process to exclude the pages directory from being marked as components, while still scanning it for other purposes. This way, the distinction between page components and other components in the project is maintained.

Additional Information

  • Nuxt.js version: 3.x.x

This issue is essential for ensuring the accurate identification of components in Nuxt.js projects. Your attention to this matter is greatly appreciated.

@kittisakLS kittisakLS self-assigned this Nov 9, 2023
@kittisakLS
Copy link
Contributor Author

@ravut8 Please review

@ravut8
Copy link
Contributor

ravut8 commented Nov 10, 2023

@kittisakLS Looks good, feel free to continue with this issue.

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