Skip to content

Commit 2cbe64c

Browse files
Merge pull request #17 from hipstersmoothie/auto-plugins
add some auto plugins + add contributors
2 parents a9c3a5d + 9521b20 commit 2cbe64c

5 files changed

Lines changed: 71 additions & 3 deletions

File tree

.all-contributorsrc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"projectName": "react-docgen-typescript-plugin",
3+
"projectOwner": "hipstersmoothie",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
6+
"files": [
7+
"README.md"
8+
],
9+
"imageSize": 100,
10+
"commit": true,
11+
"commitConvention": "none",
12+
"contributors": [
13+
{
14+
"login": "hipstersmoothie",
15+
"name": "Andrew Lisowski",
16+
"avatar_url": "https://avatars3.githubusercontent.com/u/1192452?v=4",
17+
"profile": "http://hipstersmoothie.com/",
18+
"contributions": [
19+
"code",
20+
"design",
21+
"doc",
22+
"ideas",
23+
"maintenance"
24+
]
25+
},
26+
{
27+
"login": "shilman",
28+
"name": "Michael Shilman",
29+
"avatar_url": "https://avatars2.githubusercontent.com/u/488689?v=4",
30+
"profile": "http://shilman.net/",
31+
"contributions": [
32+
"code"
33+
]
34+
}
35+
],
36+
"contributorsPerLine": 7
37+
}

.github/workflows/push.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Node CI
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
410

511
jobs:
612
build:

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"@types/webpack": "^4.41.17",
3838
"@typescript-eslint/eslint-plugin": "2.31.0",
3939
"@typescript-eslint/parser": "2.31.0",
40-
"auto": "^9.39.0",
40+
"auto": "^10.2.3",
41+
"auto-config-hipstersmoothie": "^4.0.0",
4142
"eslint": "7.0.0",
4243
"eslint-config-airbnb-base": "14.1.0",
4344
"eslint-config-prettier": "6.11.0",
@@ -57,5 +58,8 @@
5758
"prettier --write",
5859
"git add"
5960
]
61+
},
62+
"auto": {
63+
"extends": "hipstersmoothie"
6064
}
6165
}

readme.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,24 @@ DEBUG=docgen:* npm run storybook
6868

6969
- [sn-client](https://github.com/SenseNet/sn-client/) - Inspired by this custom webpack plugin
7070
- [react-docgen-typescript-loader](https://github.com/strothj/react-docgen-typescript-loader/) - Webpack loader to generate docgen information from Typescript React components.
71+
72+
## Contributors ✨
73+
74+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
75+
76+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
77+
<!-- prettier-ignore-start -->
78+
<!-- markdownlint-disable -->
79+
<table>
80+
<tr>
81+
<td align="center"><a href="http://hipstersmoothie.com/"><img src="https://avatars3.githubusercontent.com/u/1192452?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andrew Lisowski</b></sub></a><br /><a href="https://github.com/hipstersmoothie/react-docgen-typescript-plugin/commits?author=hipstersmoothie" title="Code">💻</a> <a href="#design-hipstersmoothie" title="Design">🎨</a> <a href="https://github.com/hipstersmoothie/react-docgen-typescript-plugin/commits?author=hipstersmoothie" title="Documentation">📖</a> <a href="#ideas-hipstersmoothie" title="Ideas, Planning, & Feedback">🤔</a> <a href="#maintenance-hipstersmoothie" title="Maintenance">🚧</a></td>
82+
<td align="center"><a href="http://shilman.net/"><img src="https://avatars2.githubusercontent.com/u/488689?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Michael Shilman</b></sub></a><br /><a href="https://github.com/hipstersmoothie/react-docgen-typescript-plugin/commits?author=shilman" title="Code">💻</a></td>
83+
</tr>
84+
</table>
85+
86+
<!-- markdownlint-restore -->
87+
<!-- prettier-ignore-end -->
88+
89+
<!-- ALL-CONTRIBUTORS-LIST:END -->
90+
91+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function getTSConfigFile(tsconfigPath: string): ts.ParsedCommandLine {
133133
const matchGlob = (globs: string[]) => {
134134
const matchers = globs.map((g) => matcher(g));
135135
return (filename: string) =>
136-
Boolean(filename && matchers.find((matcher) => matcher(filename)));
136+
Boolean(filename && matchers.find((match) => match(filename)));
137137
};
138138

139139
/** Inject typescript docgen information into modules at the end of a build */

0 commit comments

Comments
 (0)