Compare commits

...

4 Commits

Author SHA1 Message Date
642914539a 1.0.24 2019-10-14 12:59:26 +02:00
faf7a774c5 fix(core): update 2019-10-14 12:59:25 +02:00
e05a24b39b 1.0.23 2019-10-14 09:46:11 +02:00
019cc4937c fix(core): update 2019-10-14 09:46:10 +02:00
4 changed files with 9 additions and 5 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@gitzone/tsdoc", "name": "@gitzone/tsdoc",
"version": "1.0.22", "version": "1.0.24",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@gitzone/tsdoc", "name": "@gitzone/tsdoc",
"version": "1.0.22", "version": "1.0.24",
"private": false, "private": false,
"description": "a tool for better documentation", "description": "a tool for better documentation",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -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');
} }
} }
} }

View File

@ -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}`
); );
} }
} }