import fs from 'fs/promises'; import { loremIpsum } from './_util.js'; /** * @param {URL} projectDir */ export async function run(projectDir) { await fs.rm(projectDir, { recursive: true, force: true }); await fs.mkdir(new URL('./src/pages', projectDir), { recursive: true }); await fs.writeFile( new URL('./src/pages/index.astro', projectDir), `\ --- const content = "${loremIpsum}" ---
{content}
')}