forked from digipolisantwerp/antwerp-ui_react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleguide.config.js
41 lines (40 loc) · 981 Bytes
/
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
const path = require('path');
module.exports = {
components: 'packages/*/src/!(index).js',
getExampleFilename(componentPath) {
const basePath = componentPath.split('src/')[0];
return basePath + 'Readme.md';
},
skipComponentsWithoutExample: true,
getComponentPathLine(componentPath) {
const name = path.basename(componentPath, '.js')
return `import { ${name} } from '@acpaas-ui/react-components';`
},
styleguideDir: 'docs',
title: 'ACPaaS UI React Components',
usageMode: 'expand',
webpackConfig: {
module: {
rules: [
// Babel loader, will use your project’s .babelrc
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader'
}
]
}
},
template: {
head: {
scripts: [],
links: [
{
rel: 'stylesheet',
href:
'https://cdn.antwerpen.be/core_branding_scss/3.0.1/main.min.css'
}
]
}
}
};