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

Delete stale templates after each build. #1550

Closed
wants to merge 1 commit into from

Conversation

player-03
Copy link
Contributor

@player-03 player-03 commented Jun 13, 2022

Template files have a habit of sticking around in the output folder, even if the project no longer needs or wants them. Clearing old templates can improve app stability.

Like #1547, this is one half of a potential solution to #1546. (The other half is openfl/hxp#28.) And I'd argue it's a better solution, requiring less maintenance and not forcing users to update hxp at the same time as Lime.

Template files have a habit of sticking around in the output folder,
even if the project no longer needs or wants them. Clearing old
templates can improve app stability.
@player-03
Copy link
Contributor Author

The conditional compilation block is going to prevent CI from noticing the change. (But if it weren't there, it would crash because CI still uses HXP 1.2.2.) If you want to test this yourself, make sure to pull my HXP branch, open HXP's haxelib.json file, and set "version": "1.2.3".

@player-03 player-03 changed the title Delete stale templates. Delete stale templates after each build. Sep 3, 2022
@player-03
Copy link
Contributor Author

Update: I think the new pull request is a better approach.

@player-03 player-03 closed this May 30, 2024
@player-03 player-03 deleted the stale_templates branch May 30, 2024 01:03
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.

1 participant