Skip to content

Commit

Permalink
docs: add 'make:docs/reference' npm script to @dfinity/authentication (
Browse files Browse the repository at this point in the history
…dfinity#310)

* add make docs

* authentiation build makes docs/reference, and gitignore the output
  • Loading branch information
Benjamin Goering authored Mar 19, 2021
1 parent ae7be45 commit 08ff6d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/authentication/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ dist/
**/*.js.map
**/*.d.ts

# generated docs
/docs/reference

# Cannot ignore .d.ts files in types/
!types/**/*.d.ts

Expand Down
4 changes: 3 additions & 1 deletion packages/authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"scripts": {
"build": "tsc -b && tsc -p tsconfig-cjs.json",
"build": "tsc -b && tsc -p tsconfig-cjs.json && npm run make:docs/reference",
"bundle": "npm run build",
"ci": "npm run prettier && npm run lint && npm run test",
"lint": "eslint 'src' --ext '.js,.jsx,.ts,.tsx'",
"lint:fix": "npm run lint -- --fix",
"make:docs/reference": "typedoc src/index.ts --out docs/reference",
"prettier": "prettier --check \"src/**/*.ts\"",
"prettier:write": "npm run prettier -- --write",
"test": "jest --verbose --detectOpenHandles"
Expand Down Expand Up @@ -40,6 +41,7 @@
"text-encoding": "^0.7.0",
"ts-jest": "^24.2.0",
"tslint": "^5.20.0",
"typedoc": "^0.20.32",
"typescript": "^3.6.3",
"whatwg-fetch": "^3.0.0"
}
Expand Down

0 comments on commit 08ff6d3

Please sign in to comment.