Build responsive Buch & Bohne website from supplied design
showcase/deploy Live at https://showcase.andrefiedler.de/2608_BuB/
showcase/deploy Live at https://showcase.andrefiedler.de/2608_BuB/
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { cp, mkdir, rm } from 'node:fs/promises';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
const root = new URL('../', import.meta.url);
|
||||
const output = new URL('dist/', root);
|
||||
const publicFiles = ['index.html', 'assets', 'favicon.ico', 'favicon.svg', 'sitemap.xml', 'robots.txt', 'site.webmanifest'];
|
||||
|
||||
await rm(output, { recursive: true, force: true });
|
||||
await mkdir(output, { recursive: true });
|
||||
for (const filename of publicFiles) {
|
||||
await cp(new URL(filename, root), new URL(filename, output), { recursive: true });
|
||||
}
|
||||
console.log(`Static site built at ${fileURLToPath(output)}`);
|
||||
Reference in New Issue
Block a user