Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
9a0dfd11ce | |||
de5c5a25bf | |||
5a833bb288 | |||
aae3bfc7f2 | |||
642914539a | |||
faf7a774c5 |
4
.snyk
4
.snyk
@ -10,4 +10,8 @@ ignore:
|
||||
- typedoc > shelljs:
|
||||
reason: None given
|
||||
expires: '2019-06-13T06:50:33.594Z'
|
||||
SNYK-JS-HANDLEBARS-469063:
|
||||
- typedoc > handlebars:
|
||||
reason: None given
|
||||
expires: '2019-11-13T11:12:56.134Z'
|
||||
patch: {}
|
||||
|
@ -2,6 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"target": "es2017",
|
||||
"module": "commonjs",
|
||||
"esModuleInterop": true
|
||||
"esModuleInterop": true,
|
||||
"experimentalDecorators": true
|
||||
}
|
||||
}
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@gitzone/tsdoc",
|
||||
"version": "1.0.23",
|
||||
"version": "1.0.26",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@gitzone/tsdoc",
|
||||
"version": "1.0.23",
|
||||
"version": "1.0.26",
|
||||
"private": false,
|
||||
"description": "a tool for better documentation",
|
||||
"main": "dist/index.js",
|
||||
|
@ -22,8 +22,12 @@ export class TypeDoc {
|
||||
}
|
||||
|
||||
public async compile() {
|
||||
let tsDir: 'ts' | 'ts_web';
|
||||
plugins.smartfile.fs.isDirectory(plugins.path.join(this.typedocDirectory, 'ts')) ? tsDir = 'ts' : null;
|
||||
plugins.smartfile.fs.isDirectory(plugins.path.join(this.typedocDirectory, 'ts_web')) ? tsDir = 'ts_web' : null;
|
||||
|
||||
await this.smartshellInstance.exec(
|
||||
`typedoc --tsconfig ${paths.tsconfigFile} --out public/ ts/`
|
||||
`typedoc --tsconfig ${paths.tsconfigFile} --out public/ ${tsDir}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user