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

Replace Teeplate with LuckyTemplate #1861

Merged
merged 8 commits into from
Apr 1, 2024
Merged

Replace Teeplate with LuckyTemplate #1861

merged 8 commits into from
Apr 1, 2024

Conversation

jwoertink
Copy link
Member

@jwoertink jwoertink commented Mar 31, 2024

Purpose

Fixes #1832
Ref #1746

Description

We originally used Teeplate for all of the tasks that generate files. It was a good template system, but it doesn't really work on Windows. We now have LuckyTemplate which does work on Windows. By migrating this system over, this will bring Lucky to Windows compatibility 1 more step closer.

Checklist

  • - An issue already exists detailing the issue/or feature request that this PR fixes
  • - All specs are formatted with crystal tool format spec src
  • - Inline documentation has been added and/or updated
  • - Lucky builds on docker with ./script/setup
  • - All builds and specs pass on docker with ./script/test

@jwoertink jwoertink marked this pull request as ready for review March 31, 2024 17:25
@jwoertink jwoertink requested a review from mdwagner March 31, 2024 17:25
Comment on lines +52 to +58
# Doing this because `component_class` will raise an exception if the value is missing
# but the error message would say "component_class is missing" which isn't as nice of
# an error message. This lets the UI remain the same until this whole deal can be refactored
component_class
nil
rescue
"Component name is required."
Copy link
Member Author

Choose a reason for hiding this comment

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

This is mainly just to keep the output the same as it is now. I have an issue on LuckyTask luckyframework/lucky_task#8 so we can address this later.

Copy link
Contributor

@mdwagner mdwagner left a comment

Choose a reason for hiding this comment

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

Looks good! I totally forgot about this

@jwoertink jwoertink merged commit 3c5c296 into main Apr 1, 2024
5 checks passed
@jwoertink jwoertink deleted the issues/1832 branch April 1, 2024 19:56
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.

Replace Teeplate with LuckyTemplate
2 participants