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

feat(cli-utils): add experimental support for .vue SFC files #232

Merged
merged 24 commits into from
Apr 19, 2024

Conversation

JoviDeCroock
Copy link
Member

@JoviDeCroock JoviDeCroock commented Apr 19, 2024

Resolves #210
Resolves #231

Summary

This PR adds support for parsing .vue files, it will use the Vue compiler to create an intermediary representation in ts-morph.

Screenshot 2024-04-19 at 10 15 39

I added this initially only to check so we can align on the solution and I can expand it into multiple other after.

Some potential improvements

  • use the moduleResolutionHost to route .vue files to .vue.tada.ts or something similar. Now we are forced to name them .vue.ts files so that TS picks them up automatically

Copy link

changeset-bot bot commented Apr 19, 2024

🦋 Changeset detected

Latest commit: 7644358

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JoviDeCroock JoviDeCroock requested a review from kitten April 19, 2024 08:21
@JoviDeCroock JoviDeCroock changed the title Testing vue feat(cli-utils): add support for .vue files Apr 19, 2024
@JoviDeCroock JoviDeCroock changed the title feat(cli-utils): add support for .vue files feat(cli-utils): add experimental support for .vue files Apr 19, 2024
@kitten kitten force-pushed the testing-vue branch 2 times, most recently from 15d820c to 9981a6e Compare April 19, 2024 12:09
@kitten kitten force-pushed the testing-vue branch 2 times, most recently from c87874d to eb706cc Compare April 19, 2024 14:31
@kitten kitten changed the title feat(cli-utils): add experimental support for .vue files feat(cli-utils): add experimental support for .vue SFC files Apr 19, 2024
@JoviDeCroock JoviDeCroock enabled auto-merge (squash) April 19, 2024 16:20
@JoviDeCroock JoviDeCroock merged commit 6000b73 into main Apr 19, 2024
2 checks passed
@JoviDeCroock JoviDeCroock deleted the testing-vue branch April 19, 2024 16:20
@github-actions github-actions bot mentioned this pull request Apr 19, 2024
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