Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

buildstep: add check component names script #259

Open
codebender828 opened this issue Jan 30, 2023 · 3 comments
Open

buildstep: add check component names script #259

codebender828 opened this issue Jan 30, 2023 · 3 comments
Labels
good first issue 🌮 Good for newcomers good for beginners 😃 A fairly new Vue developer can fix or contribute to it! type: contributions welcome 💚 Contributions are welcome! type: tooling 🔨

Comments

@codebender828
Copy link
Collaborator

This will walk all the component exports and check that all Chakra UI Vue component names are compliant and are added to the component definition

@codebender828 codebender828 added good first issue 🌮 Good for newcomers good for beginners 😃 A fairly new Vue developer can fix or contribute to it! type: contributions welcome 💚 Contributions are welcome! type: tooling 🔨 labels Jan 30, 2023
@DeveloperAspire
Copy link

DeveloperAspire commented Feb 28, 2023

Hey @codebender828 can I take on this?

What are the measures use to check if all Chakra UI Vue component are compliant?

Copy link
Collaborator Author

Hey @DeveloperAspire ! Sure thing. Yes it would be a simple script to check that all Chakra UI Vue components have the name option and that it conforms to the named export's name.

For example, the CButton component import should pass a test that checks whether CButton.name === "CButton". We would repeat this test for all component imports.

A good place to start would be to look at the tooling/auto-import package which already has a way to check all Chakra UI Vue component modules from the @chakra-ui/vue-next package.

@DeveloperAspire
Copy link

@codebender828 Rodger Chief! I will settle and look into this and work on it. If I have any questions I will ask you.

Thank you for replying! Looking forward to working on this!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue 🌮 Good for newcomers good for beginners 😃 A fairly new Vue developer can fix or contribute to it! type: contributions welcome 💚 Contributions are welcome! type: tooling 🔨
Projects
None yet
Development

No branches or pull requests

2 participants