-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfractal.js
36 lines (28 loc) · 804 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
'use strict';
/*
* Require the path module
*/
const path = require('path');
/*
* Require the Fractal module
*/
const fractal = module.exports = require('@frctl/fractal').create();
const twigAdapter = require('@frctl/twig');
fractal.components.engine(twigAdapter);
fractal.components.set('ext', '.twig');
/*
* Give your project a title.
*/
fractal.set('project.title', 'micahgodbolt.com');
/*
* Tell Fractal where to look for components.
*/
fractal.components.set('path', path.join(__dirname, 'design/components'));
/*
* Tell Fractal where to look for documentation pages.
*/
fractal.docs.set('path', path.join(__dirname, 'design/docs'));
/*
* Tell the Fractal web preview plugin where to look for static assets.
*/
fractal.web.set('static.path', path.join(__dirname, 'design/public'));