forked from frctl/fractal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
130 lines (128 loc) · 3.12 KB
/
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
123
124
125
126
127
128
129
130
'use strict';
const packageJSON = require('./package.json');
module.exports = {
version: packageJSON.version,
env: process.env.NODE_ENV || 'production',
project: {
title: 'Component Library',
version: null,
},
components: {
engine: '@frctl/handlebars',
path: null,
label: 'components',
title: 'Components',
yield: 'yield',
splitter: '--',
ext: '.hbs',
files: {
preview: 'preview',
config: 'config',
collator: 'collator',
notes: 'readme'
},
resources: {
assets: {
label: 'Assets',
match: ['**/*']
}
},
default: {
collator: function collator(markup, item) { return `<!-- Start: @${item.handle} -->\n${markup}\n<!-- End: @${item.handle} -->\n` },
preview: null,
display: {},
context: {},
tags: [],
meta: {},
status: 'ready',
collated: false,
prefix: null,
},
statuses: {
prototype: {
label: 'Prototype',
description: 'Do not implement.',
color: '#FF3333'
},
wip: {
label: 'WIP',
description: 'Work in progress. Implement with caution.',
color: '#FF9233'
},
ready: {
label: 'Ready',
description: 'Ready to implement.',
color: '#29CC29'
}
}
},
docs: {
engine: '@frctl/handlebars',
path: null,
label: 'documentation',
title: 'Documentation',
markdown: {
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: true,
smartypants: true
},
ext: '.md',
indexLabel: 'Overview',
default: {
context: {},
status: null,
prefix: null,
},
statuses: {
draft: {
label: 'Draft',
description: 'Work in progress.',
color: '#FF3333'
},
ready: {
label: 'Ready',
description: 'Ready for referencing.',
color: '#29CC29'
}
},
files: {
config: 'config',
},
},
assets: {
label: 'assets',
title: 'Assets',
},
cli: {},
web: {
theme: '@frctl/mandelbrot',
server: {
sync: false,
watch: false,
port: null,
syncOptions: {}
},
builder: {
dest: null,
concurrency: 10,
ext: '.html',
urls: {
ext: '.html'
},
static: {
ignored: []
}
},
static: {
path: null,
mount: '/',
},
assets: {
mount: 'assets'
}
}
};