Fix : token compilation
release-tag / release-image (push) Successful in 30s

This commit is contained in:
2024-08-27 14:05:54 +02:00
parent 29cd28953d
commit 19bed27f78
2 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
FROM node:lts-alpine AS install-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm ci
COPY . .
FROM git.legonzaur.fr/heronfief/cards-gen:main AS card-svg-stage
+3 -7
View File
@@ -20,9 +20,8 @@ export async function compileCards() {
template = await (await fetch(url)).text();
}
let arrayTemplate = template.split("\n");
arrayTemplate.splice(0, 1);
template = arrayTemplate.join("\n");
template = template.replace(/\<\?.*\?\>/gm, "");
return [
Number(k.match(regex)![0]).toString(),
// markRaw(
@@ -80,10 +79,7 @@ export async function compileTokens() {
} else {
template = await (await fetch(url)).text();
}
let arrayTemplate = template.split("\n");
arrayTemplate.splice(0, 1);
template = arrayTemplate.join("\n");
template = template.replace(/\<\?.*\?\>/gm, "");
return [
k.match(regex)![0].toString(),
markRaw(