From c2a466b4beb35ebe8cb483aa28b3bad07a24f573 Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Wed, 27 Apr 2022 23:24:13 +0200 Subject: [PATCH] chore(typedocs): add Typedocs to automate docs generating. --- .gitignore | 3 +++ package.json | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1f06c2ea..0fc6f51f 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,6 @@ yarn-error.log* # generated code /src/protobuf/** + +# generated docs +/docs \ No newline at end of file diff --git a/package.json b/package.json index 9db16616..60bcad12 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "test": "react-scripts test --runInBand", "eject": "react-scripts eject", "prepare": "bin/build_protobuf.sh", - "pretest": "bin/build_protobuf.sh" + "pretest": "bin/build_protobuf.sh", + "generate:docs": "typedoc ./src/haveno.ts --exclude **/*.test.ts --excludeNotDocumented" }, "eslintConfig": { "extends": [ @@ -49,6 +50,7 @@ ] }, "devDependencies": { - "monero-javascript": "^0.6.4" + "monero-javascript": "^0.6.4", + "typedoc": "^0.22.15" } }