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" } }