Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
5a833bb288 | |||
aae3bfc7f2 | |||
642914539a | |||
faf7a774c5 | |||
e05a24b39b | |||
019cc4937c |
4
.snyk
4
.snyk
@ -10,4 +10,8 @@ ignore:
|
|||||||
- typedoc > shelljs:
|
- typedoc > shelljs:
|
||||||
reason: None given
|
reason: None given
|
||||||
expires: '2019-06-13T06:50:33.594Z'
|
expires: '2019-06-13T06:50:33.594Z'
|
||||||
|
SNYK-JS-HANDLEBARS-469063:
|
||||||
|
- typedoc > handlebars:
|
||||||
|
reason: None given
|
||||||
|
expires: '2019-11-13T11:12:56.134Z'
|
||||||
patch: {}
|
patch: {}
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsdoc",
|
"name": "@gitzone/tsdoc",
|
||||||
"version": "1.0.22",
|
"version": "1.0.25",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsdoc",
|
"name": "@gitzone/tsdoc",
|
||||||
"version": "1.0.22",
|
"version": "1.0.25",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a tool for better documentation",
|
"description": "a tool for better documentation",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -53,10 +53,10 @@ export class TsDoc {
|
|||||||
/**
|
/**
|
||||||
* runs additional tasks from package.json
|
* runs additional tasks from package.json
|
||||||
*/
|
*/
|
||||||
public runAdditionalTasks() {
|
public async runAdditionalTasks() {
|
||||||
const packageJson = plugins.smartfile.fs.toObjectSync(plugins.path.join(this.cwd, 'package.json'));
|
const packageJson = plugins.smartfile.fs.toObjectSync(plugins.path.join(this.cwd, 'package.json'));
|
||||||
if (packageJson.scripts.tsdoc) {
|
if (packageJson.scripts.tsdoc) {
|
||||||
this.smartshellInstance.exec('npm run tsdoc');
|
await this.smartshellInstance.exec('npm run tsdoc');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,12 @@ export class TypeDoc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async compile() {
|
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(
|
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