Files
webawesome/scripts/docs.js
Lea Verou dd7b673328 Run Prettier on repo
Turns out `prettier-plugin-organize-imports` sorts imports differently than the old one so this will prevent spreading the change across multiple commits whenever we touch a file (and potentially introducing conflicts)
2024-12-14 17:01:35 -05:00

16 lines
337 B
JavaScript

import Eleventy from '@11ty/eleventy';
import { deleteAsync } from 'del';
import { join } from 'path';
import { docsDir, siteDir } from './utils.js';
const elev = new Eleventy(docsDir, siteDir, {
quietMode: true,
configPath: join(docsDir, '.eleventy.js')
});
// Cleanup
await deleteAsync(siteDir);
// Write it
await elev.write();