mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
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)
16 lines
337 B
JavaScript
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();
|