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: add migration for sfc components #420

Merged
merged 2 commits into from
Jul 15, 2024
Merged

feat: add migration for sfc components #420

merged 2 commits into from
Jul 15, 2024

Conversation

eneajaho
Copy link
Collaborator

Closes #362

const decoratorPropertyName = property.getName();
if (decoratorPropertyName === 'templateUrl') {
const dir = dirname(sourcePath);
const templatePath = joinPathFragments(
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to create a reusable function for preparing "templatePath", and then reading its content? I also noticed a similar code in the "self-closing tags" schematic.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea. Will do as a refactoring step.

@nartc nartc merged commit c2dcf5e into main Jul 15, 2024
1 check passed
@nartc nartc deleted the feat/migrate-to-sfc branch July 15, 2024 13:56
Copy link

@pavankjadda pavankjadda left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

feat: add schematic to convert from multifile to SFC and vice-versa
5 participants