forked from Tandemly/eos-web-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styleguide.config.js
82 lines (81 loc) · 2.15 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
const path = require("path");
const webpackConfig = require("@tandem.ly/react-scripts/config/webpack.config.dev.js");
module.exports = {
title: "EOS Wallet Style Guide",
components: "src/components/**/[A-Z]*.js",
ignore: [
"**/__tests__/*",
"**/*.test.js",
"**/*.test.jsx",
"**/test.js",
"**/*.spec.js",
"**/__snapshots__/*",
"src/components/**/index.js",
"src/components/styleguide/*",
"src/containers/**/*"
],
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"),
DisplayRedux: path.join(
__dirname,
"src/util/component-utils/DisplayRedux.js"
),
DisplayReactRouter: path.join(
__dirname,
"src/util/component-utils/DisplayReactRouter.js"
),
ErrorBoundary: path.join(__dirname, "src/containers/ErrorBoundary.js")
},
context: {
account: path.resolve(__dirname, "src/fixtures/account.js"),
transactions: path.resolve(__dirname, "src/fixtures/transactions.js"),
users: path.resolve(__dirname, "src/fixtures/users.js")
},
assetsDir: "public/",
showCode: true,
showUsage: true,
sections: [
{
name: "Introduction",
content: "src/styleguide/intro.md",
sections: [
{
name: "Build & Installation",
content: "src/styleguide/build.md"
},
{
name: "Project Organization",
content: "src/styleguide/organization.md"
}
]
},
{
name: "Styling",
content: "src/styleguide/style.md",
sections: [
{
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
}
],
webpackConfig: webpackConfig
};