Generate pattern library for components

This commit is contained in:
abdennour 2017-02-18 12:11:34 +03:00
commit 83e13c8b36
11 changed files with 193 additions and 4 deletions

14
styleguide.config.js Normal file
View file

@ -0,0 +1,14 @@
const path = require('path');
module.exports = {
title: 'React CSV pattern library',
components: './src/components/**/*.js',
styleguideDir: 'docs',
updateWebpackConfig: function(webpackConfig) {
// Your source files folder or array of folders, should not include node_modules
const dir = path.join(__dirname, 'src');
webpackConfig.module.loaders.push(
{ test: /\.js/, loader: 'babel', exclude: /node_modules/ }
);
return webpackConfig;
}
};