Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Styleguide: deactivate cache and use tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb-sti1 committed Oct 20, 2023
1 parent 26d17ae commit 214ec1f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions frontend/styleguide.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
const webpackConfig = require('react-scripts/config/webpack.config.js');

module.exports = {
propsParser: require('react-docgen-typescript').withDefaultConfig({
skipChildrenPropWithoutDoc: false,
}).parse,
title: 'Frontend Components',
propsParser: require('react-docgen-typescript').withCustomConfig(
`${process.cwd()}/tsconfig.json`,
{
skipChildrenPropWithoutDoc: false,
},
).parse,
components: ['src/App.tsx', 'src/Components/**/*.{tsx,jsx,js,ts}'],
webpackConfig: {
...webpackConfig(process.env.NODE_ENV),
cache: false, // DON'T REMOVE THIS!!!!!!
},
ignore: [
'**/__tests__/**',
'**/*.test.{js,jsx,ts,tsx}',
Expand Down

0 comments on commit 214ec1f

Please sign in to comment.