From e98515355689b5e4d86d5fb364823edc54f17f55 Mon Sep 17 00:00:00 2001 From: hakimio Date: Fri, 11 Jan 2019 08:44:09 +0100 Subject: [PATCH] fix(typedoc): fixed generation of documentation. --- package.json | 2 +- tsconfig.json | 14 ++++++++++++++ typedoc.json | 14 -------------- 3 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 typedoc.json diff --git a/package.json b/package.json index e69a5288..f85babff 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "build:lib": "ng build ng-chartist-lib", "build": "yarn run build:lib && yarn run build:demo", "test": "ng test ng-chartist-lib --watch=false --browsers=ChromeHeadless", - "typedoc": "typedoc --options typedoc.json projects/ng-chartist-lib/src/lib/*.ts", + "typedoc": "typedoc --exclude \"**/*+(.spec.ts|.json)\" projects/ng-chartist-lib/src/lib/", "gh-pages": "git checkout gh-pages && git merge master && yarn run build && yarn run typedoc && git add . && git commit -m 'chore(*): build demo and docs' && git push && git checkout master", "release": "standard-version --sign && git push --follow-tags origin master && yarn run build && yarn publish dist/ng-chartist-lib", "postrelease": "yarn run gh-pages", diff --git a/tsconfig.json b/tsconfig.json index 733eb0c4..efc41c95 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,5 +16,19 @@ "ng-chartist": ["dist/ng-chartist-lib"], "ng-chartist/*": ["dist/ng-chartist-lib/*"] } + }, + "typedocOptions": { + "mode": "file", + "out": "docs", + "ignoreCompilerErrors": "true", + "experimentalDecorators": "true", + "emitDecoratorMetadata": "true", + "target": "ES5", + "moduleResolution": "node", + "preserveConstEnums": "true", + "stripInternal": "true", + "suppressExcessPropertyErrors": "true", + "suppressImplicitAnyIndexErrors": "true", + "module": "commonjs" } } diff --git a/typedoc.json b/typedoc.json deleted file mode 100644 index 7d5979c4..00000000 --- a/typedoc.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "mode": "file", - "out": "docs", - "ignoreCompilerErrors": "true", - "experimentalDecorators": "true", - "emitDecoratorMetadata": "true", - "target": "ES5", - "moduleResolution": "node", - "preserveConstEnums": "true", - "stripInternal": "true", - "suppressExcessPropertyErrors": "true", - "suppressImplicitAnyIndexErrors": "true", - "module": "commonjs" -} \ No newline at end of file