Browse Source

build: fix docs build (#131)

main
Justin Poehnelt 3 years ago committed by GitHub
parent
commit
6cdd1dd96e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .github/workflows/ci.yml
  2. 2
      package.json
  3. 3
      tsconfig.json
  4. 6
      typedoc.js

1
.github/workflows/ci.yml

@ -22,4 +22,5 @@ jobs:
- run: npm i - run: npm i
- run: npm run lint - run: npm run lint
- run: npm test - run: npm test
- run: npm run docs
- uses: codecov/codecov-action@v1 - uses: codecov/codecov-action@v1

2
package.json

@ -25,7 +25,7 @@
"module": "dist/index.esm.js", "module": "dist/index.esm.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"scripts": { "scripts": {
"docs": "typedoc", "docs": "typedoc src/index.ts",
"format": "prettier *.json *.js e2e/* examples/*.html --write && eslint src/* --fix", "format": "prettier *.json *.js e2e/* examples/*.html --write && eslint src/* --fix",
"lint": "eslint src/*", "lint": "eslint src/*",
"prepare": "rollup -c", "prepare": "rollup -c",

3
tsconfig.json

@ -8,7 +8,8 @@
"esModuleInterop": true, "esModuleInterop": true,
"lib": ["DOM", "ESNext"], "lib": ["DOM", "ESNext"],
"target": "ES6", "target": "ES6",
"moduleResolution": "node" "moduleResolution": "node",
"skipLibCheck": true,
}, },
"include": ["src/**/*"] "include": ["src/**/*"]
} }

6
typedoc.js

@ -15,12 +15,8 @@
*/ */
module.exports = { module.exports = {
mode: "file",
target: "es6",
out: "docs", out: "docs",
exclude: ["**/node_modules/**", "**/*.spec.ts", "**/*.test.ts"], exclude: ["**/node_modules/**", "**/*.spec.ts", "**/*.test.ts"],
name: "", name: "@googlemaps/markerwithlabels",
excludePrivate: true, excludePrivate: true,
excludeNotExported: true,
excludeExternals: true,
}; };

Loading…
Cancel
Save