MCPcopy Create free account
hub / github.com/api-platform/website / createWallpapers

Function createWallpapers

pwa/prebuild.js:33–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33async function createWallpapers() {
34 const inputDirectory = path.join(process.cwd(), "data", "wallpapers");
35 const outputDirectory = path.join(
36 process.cwd(),
37 "public",
38 "images",
39 "wallpapers"
40 );
41 const filenames = fs.readdirSync(inputDirectory);
42 await Promise.all(
43 filenames.map(async (file: string) => {
44 await createWallpaper(inputDirectory, outputDirectory, file, 2880, 1800);
45 await createWallpaper(inputDirectory, outputDirectory, file, 1920, 1080);
46 await createWallpaper(inputDirectory, outputDirectory, file, 1920, 1200);
47 await createWallpaper(inputDirectory, outputDirectory, file, 660, 400);
48 })
49 );
50}
51
52export async function createLogo(
53 inputDirectory: string,

Callers 1

prebuild.jsFile · 0.70

Calls 1

createWallpaperFunction · 0.70

Tested by

no test coverage detected