Compare commits

...

8 Commits

Author SHA1 Message Date
5a046a7667 1.0.12 2019-05-19 21:48:54 +02:00
b04f3be3db fix(core): update 2019-05-19 21:48:54 +02:00
d441f5b489 1.0.11 2019-05-15 21:42:30 +02:00
38f3ccb364 fix(core): update 2019-05-15 21:42:29 +02:00
0c7f50e3cc 1.0.10 2019-05-15 21:40:19 +02:00
7937cc8898 fix(core): update 2019-05-15 21:40:18 +02:00
1a7f33d22b 1.0.9 2019-05-15 21:25:02 +02:00
ea9dfa0e0d fix(core): update 2019-05-15 21:25:02 +02:00
4 changed files with 13 additions and 5 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@gitzone/tsdoc", "name": "@gitzone/tsdoc",
"version": "1.0.8", "version": "1.0.12",
"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.8", "version": "1.0.12",
"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

@ -20,6 +20,9 @@ export class MkDocs {
case argvArg.serve: case argvArg.serve:
await mkdocsInstance.serve(); await mkdocsInstance.serve();
break; break;
case argvArg.publish:
await mkdocsInstance.publish();
break;
default: default:
await mkdocsInstance.compile(); await mkdocsInstance.compile();
break; break;
@ -42,19 +45,23 @@ export class MkDocs {
await this.update(); await this.update();
await this.smartshellInstance.exec(`rm -rf public/`); await this.smartshellInstance.exec(`rm -rf public/`);
await this.smartshellInstance.exec( await this.smartshellInstance.exec(
`docker run --rm -it -p 8000:8000 -v ${ `docker run --rm -p 8000:8000 -v ${
paths.cwd paths.cwd
}:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs build` }:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs build`
); );
await this.smartshellInstance.exec(`gitzone commit`);
} }
public async serve() { public async serve() {
await this.update(); await this.update();
await this.smartshellInstance.exec( await this.smartshellInstance.exec(
`docker run --rm -it -p 8000:8000 -v ${ `docker run --rm -p 8000:8000 -v ${
paths.cwd paths.cwd
}:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs` }:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs`
); );
} }
public async publish() {
await this.compile();
await this.smartshellInstance.exec(`gitzone commit`);
}
} }

View File

@ -22,6 +22,7 @@ export class TypeDoc {
} }
public async compile() { public async compile() {
console.log(paths.binDir);
await this.smartshellInstance.exec( await this.smartshellInstance.exec(
`typedoc --module "commonjs" --target "ES2016" --out public/ ts/` `typedoc --module "commonjs" --target "ES2016" --out public/ ts/`
); );