checkout/styleguide.config.js
Rinat Arsaev 1ca58cad57
FE-635: Fix final page design (#268)
* add styleguidist

* add scss in prettier

* update final modal
2018-08-02 18:54:57 +03:00

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]
};