Skip to content

Commit

Permalink
feat: Update TS & react-docgen-typescript and support parser config (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltaranto committed Aug 13, 2021
1 parent ce918e1 commit 76e585b
Show file tree
Hide file tree
Showing 45 changed files with 84 additions and 11,264 deletions.
6 changes: 0 additions & 6 deletions .eslintrc
Expand Up @@ -11,12 +11,6 @@
"no-console": 0,
"no-process-exit": 0
}
},
{
"files": ["examples/**/*.js"],
"rules": {
"import/no-unresolved": 0
}
}
]
}
2 changes: 1 addition & 1 deletion .github/workflows/preview-site.yml
Expand Up @@ -24,7 +24,7 @@ jobs:
run: yarn --frozen-lockfile

- name: Build
run: yarn preview:build
run: yarn build:themed

- name: Deploy to surge
run: yarn deploy-preview -d playroom--${GITHUB_SHA}.surge.sh
Expand Down
26 changes: 19 additions & 7 deletions README.md
Expand Up @@ -113,9 +113,9 @@ export default [
<Button weight="strong">
Button
</Button>
`
`,
},
...
// etc...
];
```

Expand Down Expand Up @@ -167,11 +167,23 @@ If you need to customise this behaviour, you can provide a `typeScriptFiles` opt
```js
module.exports = {
...,
typeScriptFiles: [
'src/components/**/*.{ts,tsx}',
'!**/node_modules'
]
// ...
typeScriptFiles: ['src/components/**/*.{ts,tsx}', '!**/node_modules'],
};
```
If you need to customise the [parser options](https://github.com/styleguidist/react-docgen-typescript#options), you can provide a `reactDocgenTypescriptConfig` option in `playroom.config.js`.
For example:
```js
module.exports = {
// ...
reactDocgenTypescriptConfig: {
propFilter: (prop, component) => {
// ...
},
},
};
```
Expand Down
21 changes: 0 additions & 21 deletions examples/braid-design-system/README.md

This file was deleted.

22 changes: 0 additions & 22 deletions examples/braid-design-system/package.json

This file was deleted.

91 changes: 0 additions & 91 deletions examples/braid-design-system/playroom.config.js

This file was deleted.

11 changes: 0 additions & 11 deletions examples/braid-design-system/playroom/FrameComponent.js

This file was deleted.

25 changes: 0 additions & 25 deletions examples/braid-design-system/playroom/snippets.js

This file was deleted.

0 comments on commit 76e585b

Please sign in to comment.