-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathplayroom.config.js
49 lines (48 loc) · 1.5 KB
/
playroom.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
const path = require("path");
module.exports = {
components: "./lib",
outputPath: ".storybook/static/playroom",
snippets: "./playroom/Snippets.js",
widths: [320, 375, 768, 1024, 1600],
frameComponent: "./playroom/FrameComponent.js",
exampleCode: `
<Box bg="greyLightest" p="r" height="100vh">
<Card title="Welcome to Playroom!">
<P mb="r">
Use playroom to quickly and easily construct shareable mockups using our design system.
</P>
<P mb="r">
To begin, just type < and a list of our components will pop up, you can continue typing to refine your search.
</P>
<P>
For component examples and props usage see <StyledLink href="https://styleguide.orchestrated.io/?path=/docs/intro--page" target="_blank">ORCS storybook</StyledLink>.
</P>
</Card>
</Box>
`,
webpackConfig: () => ({
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: require.resolve("babel-loader"),
options: {
presets: [
require.resolve("@babel/preset-env"),
require.resolve("@babel/preset-react")
],
plugins: [
require.resolve("@babel/plugin-proposal-class-properties")
]
}
},
{
test: /_datepicker\.css/i,
use: ["style-loader", "css-loader"]
}
]
}
}),
openBrowser: false
};