fix(template): fix project.hxml template
test / test (push) Failing after 5m38s

This commit is contained in:
2026-11-01 16:19:02 +03:00
parent 57f7e88fab
commit 769127d6f0
2 changed files with 10 additions and 4 deletions
+1
View File
@@ -7,6 +7,7 @@ const __dirname = path.dirname(__filename);
export default new Eta({ export default new Eta({
autoFilter: true, autoFilter: true,
escapeFunction: (val: unknown): string => String(val),
filterFunction: (val: unknown): string => (val === null || val === undefined ? "" : String(val)), filterFunction: (val: unknown): string => (val === null || val === undefined ? "" : String(val)),
useWith: true, useWith: true,
views: path.join(__dirname, "template"), views: path.join(__dirname, "template"),
+9 -4
View File
@@ -1,11 +1,16 @@
<% sources.forEach(function(item) { %> <% sources.forEach(function(item) { %>
-cp "<%=item%>"<% }); %> -cp "<%=item%>"
<% }); %>
<% libs.forEach(function(item) { %> <% libs.forEach(function(item) { %>
-lib <%=item.name%>:<%=item.version.split('@').shift()%><% }); %> -lib <%=item.name%>:<%=item.version.split('@').shift()%>
<% }); %>
<% macros.forEach(function(item) { %> <% macros.forEach(function(item) { %>
--macro "<%=item%>"<% }); %> --macro "<%=item%>"
<% }); %>
<% flags.forEach(function(item) { %> <% flags.forEach(function(item) { %>
-D <%=item%><% }); %> -D <%=item%>
<% }); %>
-main <%=main%> -main <%=main%>