Skip to content

Commit 082a60a

Browse files
committed
feat(include): add include flag, fix some bugs and improve performance
1 parent 3cdbc8a commit 082a60a

14 files changed

+5884
-5114
lines changed

.github/workflows/test-and-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [14.x, 16.x]
11+
node-version: [14.x, 16.x, 17.x]
1212

1313
steps:
1414
- uses: actions/checkout@v1

.github/workflows/test-and-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [14.x, 16.x]
14+
node-version: [14.x, 16.x, 17.x]
1515

1616
steps:
1717
- uses: actions/checkout@v1

.github/workflows/vercel-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [14.x, 16.x]
14+
node-version: [14.x, 16.x, 17.x]
1515

1616
steps:
1717
- uses: actions/checkout@v1

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Use these options after `vuepress-jsdoc`.
6666
| --version | -v | | Show current version |
6767
| --readme | -r | | Path to custom readme file |
6868
| --exclude | -e | | Pattern to exclude files/folders (Comma seperated) - \*.test.js,exclude.js [more information](https://github.com/micromatch/micromatch#ismatch) |
69+
| --include | -e | | Pattern to include files/folders (Comma seperated) - \*.test.js,exclude.js [more information](https://github.com/micromatch/micromatch#ismatch) |
6970
| --rmPattern | -rm | | Pattern when removing files. You can ex- and include files. (glob pattern) |
7071
| --partials | -p | | jsdoc2markdown partial templates (overwrites default ones) |
7172
| --jsDocConfigPath | -c | | Path to [JsDoc Config](http://usejsdoc.org/about-configuring-jsdoc.html) (experimental) |
@@ -162,7 +163,7 @@ Use `headline` to add a custom `h1` title.
162163
To use typescript, you have to install these dev-dependencies:
163164

164165
```bash
165-
yarn add -D typescript jsdoc-babel @babel/cli @babel/core @babel/preset-env @babel/preset-typescript jsdoc-to-markdown
166+
npm install -D typescript jsdoc-babel @babel/cli @babel/core @babel/preset-env @babel/preset-typescript jsdoc-to-markdown
166167
```
167168

168169
Next, you have to add a `jsdoc.json` to your project with some settings and add it with the `-c` parameter.

example/package-lock.json

+3,980-2,583
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"docs": "../bin/vuepress-jsdoc.js --jsDocConfigPath ./jsdoc.json --source=./src --dist=./documentation --title=API --exclude=class.js --partials=./partials/*.hbs --readme=./README.md",
7+
"docs": "../bin/vuepress-jsdoc.js --jsDocConfigPath=jsdoc.json --source=./src --dist=./documentation --title=API --exclude=class.js --partials=./partials/*.hbs --readme=./README.md",
88
"docs:dev": "npm run docs -- --watch",
99
"dev": "npm run docs && vuepress dev documentation",
1010
"build:local": "npm run docs && vuepress build documentation",
@@ -14,17 +14,17 @@
1414
"author": "",
1515
"license": "ISC",
1616
"dependencies": {
17-
"vuepress": "^1.8.2"
17+
"vuepress": "^1.9.7"
1818
},
1919
"devDependencies": {
20-
"@babel/cli": "^7.16.0",
21-
"@babel/core": "^7.16.0",
22-
"@babel/plugin-proposal-class-properties": "^7.16.0",
23-
"@babel/preset-env": "^7.16.4",
24-
"@babel/preset-typescript": "^7.16.0",
25-
"concurrently": "^6.4.0",
20+
"@babel/cli": "^7.17.3",
21+
"@babel/core": "^7.17.3",
22+
"@babel/plugin-proposal-class-properties": "^7.16.7",
23+
"@babel/preset-env": "^7.16.11",
24+
"@babel/preset-typescript": "^7.16.7",
25+
"concurrently": "^7.0.0",
2626
"jsdoc-babel": "^0.5.0",
27-
"jsdoc-to-markdown": "^7.1.0",
28-
"typescript": "^4.4.4"
27+
"jsdoc-to-markdown": "^7.1.1",
28+
"typescript": "^4.5.5"
2929
}
3030
}

0 commit comments

Comments
 (0)