forked from MapComplete/MapComplete
Fix missing file problem when starting server in fresh repository.
This commit is contained in:
parent
3619ca6389
commit
344abbea85
4 changed files with 19 additions and 13 deletions
|
|
@ -5,7 +5,7 @@ Img.runningFromConsole = true;
|
|||
UIElement.runningFromConsole = true;
|
||||
|
||||
import {AllKnownLayouts} from "./Customizations/AllKnownLayouts";
|
||||
import {readFileSync, writeFile, writeFileSync} from "fs";
|
||||
import {existsSync, mkdirSync, readFileSync, writeFile, writeFileSync} from "fs";
|
||||
import Locale from "./UI/i18n/Locale";
|
||||
import svg2img from 'promise-svg2img';
|
||||
import Translations from "./UI/i18n/Translations";
|
||||
|
|
@ -244,6 +244,12 @@ let wikiPage = "{|class=\"wikitable sortable\"\n" +
|
|||
"! Name, link !! Genre !! Covered region !! Language !! Description !! Free materials !! Image\n" +
|
||||
"|-";
|
||||
|
||||
|
||||
const generatedDir = "./assets/generated";
|
||||
if (! existsSync(generatedDir)) {
|
||||
mkdirSync("./assets/generated")
|
||||
}
|
||||
|
||||
for (const layoutName in all) {
|
||||
if (blacklist.indexOf(layoutName.toLowerCase()) >= 0) {
|
||||
console.log(`Skipping a layout with name${layoutName}, it is on the blacklist`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue