mirror of
https://github.com/valitydev/checkout.git
synced 2024-11-06 10:35:20 +00:00
1ca58cad57
* add styleguidist * add scss in prettier * update final modal
15 lines
603 B
JavaScript
15 lines
603 B
JavaScript
const path = require('path');
|
|
const glob = require('glob');
|
|
|
|
module.exports = {
|
|
title: 'Checkout Style Guide',
|
|
components: () =>
|
|
glob
|
|
.sync(path.resolve(__dirname, 'src/app/components/**/*.tsx'))
|
|
.filter((module) => /\/[a-z][-a-z0-9]*\.tsx/.test(module)),
|
|
getExampleFilename: (componentPath) => componentPath.replace(/\.tsx?$/, '.example.md'),
|
|
resolver: require('react-docgen').resolver.findAllComponentDefinitions,
|
|
propsParser: require('react-docgen-typescript').withDefaultConfig().parse,
|
|
webpackConfig: require('./config/webpack.dev.js')[0]
|
|
};
|