forked from pattern-lab/patternlab-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatternlab-config.js
122 lines (121 loc) · 2.88 KB
/
patternlab-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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
const resolvePkg = require('resolve-pkg');
module.exports = {
engines: {
twig: {
namespaces: [
{
id: 'uikit',
recursive: true,
paths: [resolvePkg(`@pattern-lab/uikit-workshop/views-twig`)],
},
{
id: 'atoms',
recursive: true,
paths: ['source/_patterns/00-atoms'],
},
{
id: 'molecules',
recursive: true,
paths: ['source/_patterns/01-molecules'],
},
],
alterTwigEnv: [
{
file: 'alter-twig.php',
functions: ['addCustomExtension'],
},
],
},
},
cacheBust: true,
cleanPublic: true,
defaultPattern: 'all',
defaultShowPatternInfo: false,
ishControlsHide: {
s: false,
m: false,
l: false,
full: false,
random: false,
disco: false,
hay: true,
mqs: false,
find: false,
'views-all': false,
'views-annotations': false,
'views-code': false,
'views-new': false,
'tools-all': false,
'tools-docs': false,
},
ishViewportRange: {
s: [240, 500],
m: [500, 800],
l: [800, 2600],
},
logLevel: 'info',
outputFileSuffixes: {
rendered: '.rendered',
rawTemplate: '',
markupOnly: '.markup-only',
},
paths: {
source: {
root: './source/',
patterns: './source/_patterns/',
data: './source/_data/',
meta: './source/_meta/',
annotations: './source/_annotations/',
styleguide: 'dist/',
patternlabFiles: {
'general-header':
'../uikit-workshop/views/partials/general-header.mustache',
'general-footer':
'../uikit-workshop/views/partials/general-footer.mustache',
patternSection:
'../uikit-workshop/views/partials/patternSection.mustache',
patternSectionSubtype:
'../uikit-workshop/views/partials/patternSectionSubtype.mustache',
viewall: '../uikit-workshop/views/viewall.mustache',
},
js: './source/js',
images: './source/images',
fonts: './source/fonts',
css: './source/css',
},
public: {
root: 'public/',
patterns: 'public/patterns/',
data: 'public/styleguide/data/',
annotations: 'public/annotations/',
styleguide: 'public/styleguide/',
js: 'public/js',
images: 'public/images',
fonts: 'public/fonts',
css: 'public/css',
},
},
patternExtension: 'twig',
patternStateCascade: ['inprogress', 'inreview', 'complete'],
patternExportDirectory: './pattern_exports/',
patternExportPatternPartials: [],
serverOptions: {
wait: 1000,
},
starterkitSubDir: 'dist',
styleGuideExcludes: [],
theme: {
color: 'light',
density: 'compact',
layout: 'horizontal',
},
uikits: [
{
name: 'uikit-workshop',
outputDir: '',
enabled: true,
excludedPatternStates: [],
excludedTags: [],
},
],
};