Skip to content

Replace Teeplate with LuckyTemplate#1861

Merged
jwoertink merged 8 commits intomainfrom
issues/1832
Apr 1, 2024
Merged

Replace Teeplate with LuckyTemplate#1861
jwoertink merged 8 commits intomainfrom
issues/1832

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
@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