Updated Compiler to be quicker

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2020-05-05 11:46:36 +02:00
parent 346168d68b
commit 557dad7e33
29 changed files with 153 additions and 82 deletions

View File

@ -9,7 +9,9 @@ const lang = process.env.CARDLANG as Langs || "en"
const endpoint = getBaseFolder(lang, "sets")
const bootstrap = async () => {
export default async () => {
console.log(endpoint)
const list = await getAllSets()
let items: Array<Set> = []
for (let el of list) {
@ -34,6 +36,5 @@ const bootstrap = async () => {
await fs.mkdir(`${endpoint}`, {recursive: true})
await fs.writeFile(`${endpoint}/index.json`, JSON.stringify(cardList))
console.log('ended ' + endpoint)
}
bootstrap()

View File

@ -8,7 +8,8 @@ const lang = process.env.CARDLANG as Langs || "en"
const endpoint = getBaseFolder(lang, "sets")
const bootstrap = async () => {
export default async () => {
console.log(endpoint)
const list = await getAllSets()
for (let el of list) {
el = el.replace("./", "../../")
@ -21,6 +22,5 @@ const bootstrap = async () => {
}
console.log('ended ' + endpoint)
}
bootstrap()

View File

@ -11,7 +11,8 @@ const lang = process.env.CARDLANG as Langs || "en"
const endpoint = getBaseFolder(lang, "sets")
const bootstrap = async () => {
export default async () => {
console.log(endpoint)
const list = await getAllSets()
for (let el of list) {
el = el.replace("./", "../../")
@ -33,6 +34,5 @@ const bootstrap = async () => {
}
console.log('ended ' + endpoint)
}
bootstrap()