-
Notifications
You must be signed in to change notification settings - Fork 0
/
styleguide.config.js
60 lines (59 loc) · 1.47 KB
/
styleguide.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const path = require("path");
const webpackConfig = require("@tandem.ly/react-scripts/config/webpack.config.dev.js");
module.exports = {
components: "src/components/**/[A-Z]*.js",
ignore: [
"**/__tests__/*",
"**/*.test.js",
"**/*.test.jsx",
"**/*.spec.js",
"src/components/**/index.js",
"src/components/styleguide/*"
],
require: [
// The Application's specific styles
path.join(__dirname, "src/styles/index.scss"),
// Styles solely for react-styleguide
path.join(__dirname, "src/styleguide/styles/styles.css")
],
styleguideComponents: {
Logo: path.join(__dirname, "src/styleguide/components/Logo.js")
},
template: path.join(__dirname, "src/styleguide/template.html"),
assetsDir: "./src/images",
showCode: true,
showUsage: true,
sections: [
{
name: "Introduction",
content: "src/styleguide/intro.md",
isolated: true
},
{
name: "Typography",
content: "src/styleguide/typography.md",
isolatedSection: true
},
{
name: "Colors",
content: "src/styleguide/colors.md",
isolatedSection: true
},
{
name: "Components",
components: "src/components/**/[A-Z]*.js",
isolatedSection: true
},
{
name: "Containers",
components: "src/containers/**/[A-Z]*.js",
isolatedSection: true
},
{
name: "Utility",
components: "src/util/**/[A-Z]*.js",
isolatedSection: true
}
],
webpackConfig: webpackConfig
};