-
Notifications
You must be signed in to change notification settings - Fork 11
/
fractal.config.js
48 lines (40 loc) · 1.27 KB
/
fractal.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
'use strict';
const path = require('path');
const fractal = module.exports = require('@frctl/fractal').create();
const pkg = require(path.join(__dirname, 'package.json'));
fractal.set('project.title', 'Kanbasu');
fractal.set('project.version', pkg.version);
fractal.components.set('path', path.join(__dirname, 'components'));
fractal.components.set('ext', '.html');
fractal.components.set('label', 'Patterns');
fractal.docs.set('path', path.join(__dirname, 'docs'));
fractal.web.set('static.path', path.join(__dirname, 'public'));
fractal.web.set('server.sync', true);
fractal.web.set('builder.dest', path.join(__dirname, 'dist'));
fractal.components.set('statuses', {
prototype: {
label: "Prototype",
description: "Do not implement.",
color: "#F67280"
},
wip: {
label: "WIP",
description: "Work in progress. Implement with caution.",
color: "#FFB270"
},
ready: {
label: "Ready",
description: "Ready to implement.",
color: "#2AAF74"
}
})
const kanbasuTheme = require('./theme');
fractal.web.theme(kanbasuTheme);
/**
* Prevent Bluebird warnings like "a promise was created in a handler but was not returned from it"
* caused by Nunjucks from polluting the console
*/
const bluebird = require('bluebird');
bluebird.config({
warnings: false
});