forked from CityOfBoston/patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fractal.js
46 lines (38 loc) · 928 Bytes
/
fractal.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
'use strict';
/*
* Require the Fractal module
*/
const fractal = module.exports = require('@frctl/fractal').create();
/*
* Give your project a title.
*/
fractal.set('project.title', 'Crispus');
/*
* A place to build the project to
*/
fractal.web.set('builder.dest', __dirname + '/public');
/*
* Tell Fractal where to look for components.
*/
fractal.set('components.path', 'components');
/*
* Tell Fractal where to look for documentation pages.
*/
fractal.set('docs.path', 'docs');
/*
* Tell the Fractal web preview plugin where to look for static assets.
*/
fractal.web.set('static.path', __dirname + '/assets');
/*
* Tell the Fractal web preview plugin to use this template for previews.
*/
fractal.set('components.default.preview', '@preview');
/*
* Configure the server
*/
fractal.web.set('server.sync', true);
fractal.web.set('server.syncOptions', {
open: true,
notify: true,
https: true,
});