Compare commits

..

6 Commits

Author SHA1 Message Date
751a5b8630 1.1.6 2021-03-06 19:21:14 +00:00
3c9e421351 fix(core): update 2021-03-06 19:21:13 +00:00
fe05144a56 1.1.5 2021-01-29 20:50:18 +00:00
ad7035e5e3 fix(core): update 2021-01-29 20:50:18 +00:00
49601f3bac 1.1.4 2020-11-27 12:55:24 +00:00
6c13622b33 fix(core): update 2020-11-27 12:55:23 +00:00
6 changed files with 654 additions and 501 deletions

1126
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@gitzone/tsdoc",
"version": "1.1.3",
"version": "1.1.6",
"private": false,
"description": "a tool for better documentation",
"main": "dist_ts/index.js",
@ -19,8 +19,8 @@
"devDependencies": {
"@gitzone/tsbuild": "^2.1.25",
"@gitzone/tstest": "^1.0.52",
"@pushrocks/tapbundle": "^3.2.9",
"@types/node": "^14.14.9",
"@pushrocks/tapbundle": "^3.2.14",
"@types/node": "^14.14.31",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0"
},
@ -31,8 +31,8 @@
"@pushrocks/smartlog": "^2.0.39",
"@pushrocks/smartlog-destination-local": "^8.0.8",
"@pushrocks/smartshell": "^2.0.26",
"typedoc": "^0.19.2",
"typescript": "^4.1.2"
"typedoc": "^0.20.30",
"typescript": "^4.2.3"
},
"files": [
"ts/**/*",

View File

@ -25,6 +25,7 @@ Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20W
## Usage
Use TypeScript for best in class intellisense.
## Contribution

View File

@ -3,4 +3,7 @@ early.start('tsdoc');
import * as plugins from './tsdoc.plugins';
import * as cli from './tsdoc.cli';
early.stop();
cli.run();
export const runCli = async () => {
await cli.run();
};

View File

@ -21,9 +21,7 @@ export class TypeDoc {
this.typedocDirectory = dirPathArg;
}
public async compile(options?: {
publicSubdir?: string;
}) {
public async compile(options?: { publicSubdir?: string }) {
const data = {
compilerOptions: {
target: 'es2017',
@ -33,14 +31,17 @@ export class TypeDoc {
},
include: [],
};
data.include = [plugins.path.join(paths.cwd, './ts/**/*')];
data.include = [
plugins.path.join(paths.cwd, './ts/**/*'),
plugins.path.join(paths.cwd, './ts_web/**/*'),
];
await plugins.smartfile.memory.toFs(JSON.stringify(data), paths.tsconfigFile);
let targetDir = paths.publicDir;
if (options?.publicSubdir) {
targetDir = plugins.path.join(targetDir, options.publicSubdir);
}
await this.smartshellInstance.exec(
`typedoc --tsconfig ${paths.tsconfigFile} --out ${targetDir}`
`typedoc --tsconfig ${paths.tsconfigFile} --out ${targetDir} ts/index.ts`
);
plugins.smartfile.fs.remove(paths.tsconfigFile);
}

View File

@ -22,7 +22,7 @@ export const run = async () => {
tsdocCli.addCommand('typedoc').subscribe(async (argvArg) => {
const typeDocInstance = new TypeDoc(paths.cwd);
await typeDocInstance.compile({
publicSubdir: argvArg.publicSubdir
publicSubdir: argvArg.publicSubdir,
});
});