Skip to content

Commit b76b102

Browse files
committed
fix doc generation and let it run on npm version, as well
1 parent f0d23cb commit b76b102

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Diff for: jsdoc.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
"allowUnknownTags": false
44
},
55
"source": {
6-
"include": "./",
7-
"includePattern": ".js$",
8-
"excludePattern": "(node_modules|docs|dist|examples|libs|tests|saucelabs.karma.conf.js)"
6+
"include": ["./src"],
7+
"includePattern": ".js$"
98
},
10-
"plugins": [
11-
"node_modules/jsdoc/plugins/markdown"
12-
],
9+
"plugins": ["node_modules/jsdoc/plugins/markdown"],
1310
"markdown": {
1411
"tags": ["param", "deprecated", "description"]
1512
},

Diff for: package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"scripts": {
9191
"start": "ws",
9292
"build": "rollup --config rollup.config.js",
93-
"version": "yarpm run build && git add -A dist",
93+
"version": "yarpm run build && yarpm run generate-docs && git add -A dist",
9494
"pretest": "yarpm run build",
9595
"test": "yarpm run test-node && yarpm run test-saucelabs",
9696
"test-saucelabs": "karma start test/saucelabs/karma.conf.js --single-run --verbose && for a in coverage/*; do codeclimate-test-reporter < \\\"$a/lcov.info\\\"; break; done",
@@ -105,7 +105,7 @@
105105
"test-training": "node test/utils/reference-server.js",
106106
"test-typings": "tsc -p types/tsconfig.json && tsc -p types/tsconfig-node.json",
107107
"prettier": "prettier --write \"*.{js,ts,md,css,json}\" \"{spec,examples,src,types}/**/*.{js,ts,md,css,json}\"",
108-
"delete-docs": "node deletedocs.js",
109-
"generate-docs": "./node_modules/.bin/jsdoc -c jsdoc.json --readme README.md"
108+
"pregenerate-docs": "node deletedocs.js",
109+
"generate-docs": "jsdoc -c jsdoc.json --readme README.md"
110110
}
111111
}

0 commit comments

Comments
 (0)