UNPKG

type2docfx

Version:

A tool to convert json format output from TypeDoc to schema driven reference model for DocFx to consume.

23 lines 1.02 kB
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var commander_1 = require("commander"); var main_1 = require("./main"); var pjson = require('../package.json'); commander_1.program .version("v" + pjson.version) .description('Generate TypeScript API documentation for docfx.') .argument('<input>', 'input can be one of the following:\n' + '* a path to the typedoc JSON output\n' + '* a path to source code folder\n' + '* an `npm install` compatible package, e.g., a package name, a git repository, a gzipped tarball, an URL, a git repository, etc.') .argument('<outputFolder>', 'The output directory to place generated artifact.') .action(function (input, output) { if (!input || !output) { console.log('Error: The input file path and output folder path is not specified!'); commander_1.program.help(); } main_1.run(input, output); }) .parse(process.argv); //# sourceMappingURL=cli.js.map