mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 05:23:40 +00:00
24 lines
480 B
JavaScript
24 lines
480 B
JavaScript
// @ts-check
|
|
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
import { create } from '../dist/index.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: '+next+fuma-docs-mdx',
|
|
installDeps: false,
|
|
initializeGit: false,
|
|
packageManager: 'npm',
|
|
});
|