diff --git a/.gitignore b/.gitignore index ed650c3f69..3c6a1ab6f7 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,6 @@ lib lib-esm # UMD bundles that export the global variable _bundles + +# generated documentation +docs \ No newline at end of file diff --git a/.npmignore b/.npmignore index db6c83e43d..55e7495926 100644 --- a/.npmignore +++ b/.npmignore @@ -4,4 +4,4 @@ tslint.json webpack.config.js yarn.lock src - +docs diff --git a/package.json b/package.json index d67890d848..7130f4737e 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,9 @@ "build": "npm run clean && run-p build:*", "lint": "tslint src/ts/**/*", "test": "run-s clean build:commonjs && mocha lib/test/**/*.js", - "test:coverage": "nyc npm run test --all" + "test:coverage": "nyc npm run test --all", + "docs:generate": "typedoc --out docs .", + "docs:open": "opn docs/index.html" }, "repository": { "type": "git", @@ -35,10 +37,12 @@ "mocha": "^3.4.1", "npm-run-all": "^4.0.2", "nyc": "^10.3.2", + "opn-cli": "^3.1.0", "shx": "^0.2.2", "source-map-support": "^0.4.15", "tslint": "^5.3.2", "tslint-config-0xproject": "^0.0.2", + "typedoc": "^0.7.1", "typescript": "^2.3.3", "webpack": "^2.6.0" } diff --git a/src/ts/0x.js.ts b/src/ts/0x.js.ts index ac9e3376d5..95446ad747 100644 --- a/src/ts/0x.js.ts +++ b/src/ts/0x.js.ts @@ -1,4 +1,5 @@ export class ZeroEx { + /** Verifies the signature */ public verifySignature() { // TODO }