mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 10:55:57 +00:00
23 lines
464 B
JavaScript
23 lines
464 B
JavaScript
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
import { create } from '../dist/create-app.js';
|
|
|
|
const repo = process.argv[2] ?? './fumadocs-ui-template';
|
|
|
|
fs.readdirSync(repo).forEach((file) => {
|
|
if (file !== '.git') {
|
|
fs.rmSync(path.join(repo, file), {
|
|
recursive: true,
|
|
force: true,
|
|
});
|
|
}
|
|
});
|
|
|
|
await create({
|
|
outputDir: repo,
|
|
template: 'fuma-docs-mdx',
|
|
tailwindcss: false,
|
|
installDeps: false,
|
|
packageManager: 'npm',
|
|
});
|