Skip to content

Commit

Permalink
feat: add basic reference generation with typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorVelarde committed Jun 9, 2020
1 parent 0856c57 commit f3cd2a0
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 0 deletions.
188 changes: 188 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "0.0.1",
"description": "CARTO Web SDK",
"keywords": [],
"repository": {
"type": "git",
"url": "git+https://github.com/CartoDB/web-sdk.git"
},
"author": "",
"license": "BSD-3-Clause",
"main": "dist/cjs/index.js",
Expand All @@ -22,6 +26,8 @@
"build:cjs": "BABEL_ENV=COMMONJS npx babel --source-maps --config-file ./babel.config.js --out-dir dist/cjs --extensions '.ts' ./src",
"build:umd": "webpack --config webpack.config.js",
"build:watch": "webpack --config webpack.config.js --watch ",
"build:docs": "npm run docs:reference",
"docs:reference": "rimraf docs/api && npx typedoc --options typedoc.js",
"prewatch": "rimraf dist/",
"test": "jest --config jest.config.js",
"test:watch": "jest --watch"
Expand Down Expand Up @@ -66,6 +72,9 @@
"ts-loader": "^7.0.5",
"tslint": "^5.20.0",
"typescript": "3.8.3",
"typedoc": "^0.17.7",
"typedoc-plugin-external-module-name": "^4.0.3",
"typedoc-plugin-markdown": "^2.3.1",
"webpack": "^4.42.0",
"webpack-bundle-analyzer": "^3.7.0",
"webpack-cli": "^3.3.11"
Expand Down
22 changes: 22 additions & 0 deletions typedoc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Configuration for reference, auto-generated from .ts files and their tsdoc comments
*/
module.exports = {
// excludeNotDocumented: true,
exclude: ['**/node_modules/**/*.ts', '**/__tests__/**/*', '**/*.types.ts'],
excludeExternals: true,
excludeNotExported: true,
excludePrivate: true,
excludeProtected: true,
ignoreCompilerErrors: true,
inputFiles: './packages',
listInvalidSymbolLinks: true,
mode: 'file',
module: 'es2015',
name: '@carto/web-sdk',
out: './docs/api',
plugin: 'none',
target: 'es6',
theme: 'default',
tsconfig: './tsconfig.json'
};

0 comments on commit f3cd2a0

Please sign in to comment.