feat(docgen): typescript support

This commit is contained in:
iCrawl
2022-06-08 17:26:54 +02:00
parent 1afae909d7
commit 3279b40912
42 changed files with 962 additions and 328 deletions

View File

@@ -1,25 +0,0 @@
#!/usr/bin/env node
import { runGenerator } from '@discordjs/ts-docgen';
import { createCommand } from 'commander';
import packageFile from '../package.json';
interface CLIOptions {
input: string;
custom: string;
output: string;
}
const command = createCommand()
.version(packageFile.version)
.option('-i, --input <string>', 'Path to an existing TypeDoc JSON output file')
.option('-c, --custom <string>', 'Custom docs definition file to use')
.option('-o, --output <string>', 'Path to output file');
const program = command.parse(process.argv);
const options = program.opts<CLIOptions>();
runGenerator({
existingOutput: options.input,
custom: options.custom,
output: options.output,
});

View File

@@ -0,0 +1 @@
export {};